Go to the documentation of this file.
18 #ifndef sitkLabelMapOverlayImageFilter_h
19 #define sitkLabelMapOverlayImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetOpacity (
double Opacity ) { this->m_Opacity = Opacity;
return *
this; }
82 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<unsigned char> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
86 std::vector<unsigned char>
GetColormap()
const {
return this->m_Colormap; }
89 std::string
GetName()
const {
return std::string (
"LabelMapOverlayImageFilter"); }
92 std::string ToString()
const;
97 Image Execute (
const Image & labelMapImage,
const Image & featureImage );
105 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * labelMapImage,
const Image * featureImage );
113 double m_Opacity{0.5};
115 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
typelist2::typelist< LabelPixelID< uint8_t >, LabelPixelID< uint16_t >, LabelPixelID< uint32_t > > LabelPixelIDTypeList
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