18 #ifndef sitkLabelToRGBImageFilter_h
19 #define sitkLabelToRGBImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
80 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
84 std::vector<uint8_t>
GetColormap()
const {
return this->m_Colormap; }
86 std::string
GetName()
const {
return std::string (
"LabelToRGBImageFilter"); }
89 std::string ToString()
const;
97 Image Execute (
const Image& image1,
double backgroundValue, std::vector<uint8_t> colormap );
104 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
105 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
std::vector< uint8_t > m_Colormap
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
#define SITKBasicFilters_EXPORT
LabelToRGBImageFilter Self
Image LabelToRGB(const Image &image1, double backgroundValue=0.0, std::vector< uint8_t > colormap=std::vector< uint8_t >())
Apply a colormap to a label image.
Self & SetColormap(std::vector< uint8_t > Colormap)
std::vector< uint8_t > GetColormap() const
double GetBackgroundValue() const
IntegerPixelIDTypeList PixelIDTypeList
The main Image class for SimpleITK.
Self & SetBackgroundValue(double BackgroundValue)
std::string GetName() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.
Apply a colormap to a label image.