Go to the documentation of this file.
18 #ifndef sitkLabelOverlayImageFilter_h
19 #define sitkLabelOverlayImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetOpacity (
double Opacity ) { this->m_Opacity = Opacity;
return *
this; }
81 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
94 std::vector<uint8_t>
GetColormap()
const {
return this->m_Colormap; }
97 std::string
GetName()
const {
return std::string (
"LabelOverlayImageFilter"); }
100 std::string ToString()
const;
115 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * image,
const Image * labelImage );
123 double m_Opacity{0.5};
125 double m_BackgroundValue{0.0};
127 std::vector<uint8_t> m_Colormap{std::vector<uint8_t>()};
130 bool m_InPlace{
false};
The Image class for SimpleITK.
Self & SetOpacity(double Opacity)
Image(Self::*)(const Image *image, const Image *labelImage) MemberFunctionType
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
Apply a colormap to a label image and put it on top of the input image.
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)