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 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
91 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
97 nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
std::string GetName() const
#define SITKBasicFilters_EXPORT
std::vector< uint8_t > GetColormap() const
typelist::MakeTypeList< LabelPixelID< uint8_t >, LabelPixelID< uint16_t >, LabelPixelID< uint32_t > >::Type LabelPixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Convert a LabelMap to a colored image.
std::vector< uint8_t > m_Colormap
LabelMapToRGBImageFilter Self
Image LabelMapToRGB(const Image &image1, std::vector< uint8_t > colormap=std::vector< uint8_t >())
Convert a LabelMap to a colored image.
The main Image class for SimpleITK.
LabelPixelIDTypeList PixelIDTypeList
The base interface for SimpleITK filters that take one input image.
Self & SetColormap(std::vector< uint8_t > Colormap)