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