Go to the documentation of this file.
18 #ifndef sitkLabelMapToRGBImageFilter_h
19 #define sitkLabelMapToRGBImageFilter_h
66 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
70 std::vector<uint8_t>
GetColormap()
const {
return this->m_Colormap; }
72 std::string
GetName()
const {
return std::string (
"LabelMapToRGBImageFilter"); }
75 std::string ToString()
const;
83 Image Execute (
const Image& image1, std::vector<uint8_t> colormap );
90 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
95 nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
The main Image class for SimpleITK.
LabelPixelIDTypeList PixelIDTypeList
Self & SetColormap(std::vector< uint8_t > Colormap)
Convert a LabelMap to a colored image.
Image LabelMapToRGB(const Image &image1, std::vector< uint8_t > colormap=std::vector< uint8_t >())
Convert a LabelMap to a colored image.
std::string GetName() const
#define SITKBasicFilters_EXPORT
LabelMapToRGBImageFilter Self
std::vector< uint8_t > m_Colormap
std::vector< uint8_t > GetColormap() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
typelist::MakeTypeList< LabelPixelID< uint8_t >, LabelPixelID< uint16_t >, LabelPixelID< uint32_t > >::Type LabelPixelIDTypeList