Go to the documentation of this file.
18 #ifndef sitkLabelMapOverlayImageFilter_h
19 #define sitkLabelMapOverlayImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetOpacity (
double Opacity ) { this->m_Opacity = Opacity;
return *
this; }
81 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<unsigned char> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
85 std::vector<unsigned char>
GetColormap()
const {
return this->m_Colormap; }
87 std::string
GetName()
const {
return std::string (
"LabelMapOverlayImageFilter"); }
90 std::string ToString()
const;
94 Image Execute (
const Image & labelMapImage,
const Image & featureImage );
98 Image Execute (
const Image & labelMapImage,
const Image & featureImage,
double opacity, std::vector<unsigned char> colormap );
106 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * labelMapImage,
const Image * featureImage );
The main Image class for SimpleITK.
std::vector< unsigned char > m_Colormap
Self & SetOpacity(double Opacity)
Self & SetColormap(std::vector< unsigned char > Colormap)
LabelPixelIDTypeList PixelIDTypeList
Apply a colormap to a label map and superimpose it on an image.
LabelMapOverlayImageFilter Self
#define SITKBasicFilters_EXPORT
std::vector< unsigned char > GetColormap() const
double GetOpacity() const
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
std::string GetName() const
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Image LabelMapOverlay(const Image &labelMapImage, const Image &featureImage, double opacity=0.5, std::vector< unsigned char > colormap=std::vector< unsigned char >())
Apply a colormap to a label map and superimpose it on an image.
typelist::MakeTypeList< LabelPixelID< uint8_t >, LabelPixelID< uint16_t >, LabelPixelID< uint32_t > >::Type LabelPixelIDTypeList