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 );
103 typedef Image (Self::*MemberFunctionType)(
const Image * labelMapImage,
const Image * featureImage );
106 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * labelMapImage,
const Image * featureImage );
Apply a colormap to a label map and superimpose it on an image.
std::vector< unsigned char > GetColormap() const
#define SITKBasicFilters_EXPORT
typelist::MakeTypeList< LabelPixelID< uint8_t >, LabelPixelID< uint16_t >, LabelPixelID< uint32_t > >::Type LabelPixelIDTypeList
double GetOpacity() const
LabelPixelIDTypeList PixelIDTypeList
std::string GetName() const
std::vector< unsigned char > m_Colormap
LabelMapOverlayImageFilter Self
The main Image class for SimpleITK.
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.
Self & SetOpacity(double Opacity)
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
The base interface for SimpleITK filters that take one input image.
Self & SetColormap(std::vector< unsigned char > Colormap)