Go to the documentation of this file.
18 #ifndef sitkLabelToRGBImageFilter_h
19 #define sitkLabelToRGBImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
81 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
85 std::vector<uint8_t>
GetColormap()
const {
return this->m_Colormap; }
88 std::string
GetName()
const {
return std::string (
"LabelToRGBImageFilter"); }
91 std::string ToString()
const;
105 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
114 double m_BackgroundValue{0.0};
116 std::vector<uint8_t> m_Colormap{std::vector<uint8_t>()};
119 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
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > > IntegerPixelIDTypeList
Self & SetColormap(std::vector< uint8_t > Colormap)
Image(Self::*)(const Image &image1) MemberFunctionType