18#ifndef sitkLabelOverlayImageFilter_h
19#define sitkLabelOverlayImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetOpacity (
double Opacity ) { this->
m_Opacity = Opacity;
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->
m_Colormap = Colormap;
return *
this; }
97 std::string
GetName()
const {
return std::string (
"LabelOverlayImageFilter"); }
The Image class for SimpleITK.
Image Execute(Image &&image, const Image &labelImage)
double GetOpacity() const
LabelOverlayImageFilter Self
std::vector< uint8_t > GetColormap() const
std::string ToString() const
Image(Self::*)(const Image *image, const Image *labelImage) MemberFunctionType
Self & SetColormap(std::vector< uint8_t > Colormap)
std::string GetName() const
BasicPixelIDTypeList PixelIDTypeList
std::vector< uint8_t > m_Colormap
virtual ~LabelOverlayImageFilter()
LabelOverlayImageFilter()
std::unique_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Self & SetOpacity(double Opacity)
double GetBackgroundValue() const
Self & SetBackgroundValue(double BackgroundValue)
Image DualExecuteInternal(const Image *image, const Image *labelImage)
Image LabelOverlay(Image &&image, const Image &labelImage, double opacity=0.5, double backgroundValue=0.0, std::vector< uint8_t > colormap=std::vector< uint8_t >())
Apply a colormap to a label image and put it on top of the input image.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
#define SITKBasicFilters_EXPORT