Go to the documentation of this file.
18 #ifndef sitkLabelOverlayImageFilter_h
19 #define sitkLabelOverlayImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetOpacity (
double Opacity ) { this->m_Opacity = Opacity;
return *
this; }
82 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
91 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
95 std::vector<uint8_t>
GetColormap()
const {
return this->m_Colormap; }
98 std::string
GetName()
const {
return std::string (
"LabelOverlayImageFilter"); }
101 std::string ToString()
const;
116 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * image,
const Image * labelImage );
124 double m_Opacity{0.5};
126 double m_BackgroundValue{0.0};
128 std::vector<uint8_t> m_Colormap{std::vector<uint8_t>()};
131 bool m_InPlace{
false};
The Image class for SimpleITK.
Self & SetOpacity(double Opacity)
Image(Self::*)(const Image *image, const Image *labelImage) MemberFunctionType
Apply a colormap to a label image and put it on top of the input image.
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
std::string GetName() const
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.
std::unique_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Self & SetColormap(std::vector< uint8_t > Colormap)
#define SITKBasicFilters_EXPORT
The base interface for SimpleITK filters that take one input image.
double GetBackgroundValue() const
BasicPixelIDTypeList PixelIDTypeList
double GetOpacity() const
std::vector< uint8_t > GetColormap() const
Self & SetBackgroundValue(double BackgroundValue)