18 #ifndef sitkLabelOverlayImageFilter_h
19 #define sitkLabelOverlayImageFilter_h
70 SITK_RETURN_SELF_TYPE_HEADER
SetOpacity (
double Opacity ) { this->m_Opacity = Opacity;
return *
this; }
80 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
93 std::vector<uint8_t>
GetColormap()
const {
return this->m_Colormap; }
95 std::string
GetName()
const {
return std::string (
"LabelOverlayImageFilter"); }
98 std::string ToString()
const;
106 Image Execute (
const Image & image,
const Image & labelImage,
double opacity,
double backgroundValue, std::vector<uint8_t> colormap );
111 typedef Image (Self::*MemberFunctionType)(
const Image * image,
const Image * labelImage );
114 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * image,
const Image * labelImage );
#define SITKBasicFilters_EXPORT
std::string GetName() const
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::vector< uint8_t > m_Colormap
BasicPixelIDTypeList PixelIDTypeList
Self & SetBackgroundValue(double BackgroundValue)
Apply a colormap to a label image and put it on top of the input image.
LabelOverlayImageFilter Self
double GetOpacity() const
nsstd::auto_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
double GetBackgroundValue() const
The Image class for SimpleITK.
Self & SetOpacity(double Opacity)
Self & SetColormap(std::vector< uint8_t > Colormap)
The base interface for SimpleITK filters that take one input image.
Image LabelOverlay(const 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::vector< uint8_t > GetColormap() const