Go to the documentation of this file.
18 #ifndef sitkLabelToRGBImageFilter_h
19 #define sitkLabelToRGBImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
82 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
86 std::vector<uint8_t>
GetColormap()
const {
return this->m_Colormap; }
89 std::string
GetName()
const {
return std::string (
"LabelToRGBImageFilter"); }
92 std::string ToString()
const;
106 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
115 double m_BackgroundValue{0.0};
117 std::vector<uint8_t> m_Colormap{std::vector<uint8_t>()};
120 bool m_InPlace{
false};
The Image class for SimpleITK.
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::string GetName() const
Self & SetBackgroundValue(double BackgroundValue)
Apply a colormap to a label image.
std::vector< uint8_t > GetColormap() const
#define SITKBasicFilters_EXPORT
double GetBackgroundValue() const
The base interface for SimpleITK filters that take one input image.
Image LabelToRGB(Image &&image1, double backgroundValue=0.0, std::vector< uint8_t > colormap=std::vector< uint8_t >())
Apply a colormap to a label image.
IntegerPixelIDTypeList PixelIDTypeList
Self & SetColormap(std::vector< uint8_t > Colormap)
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
Image(Self::*)(const Image &image1) MemberFunctionType