18 #ifndef itkColorTable_h
19 #define itkColorTable_h
39 template<
typename TPixel >
82 itkGetConstMacro(NumberOfColors,
unsigned int);
91 bool SetColor(
unsigned int c, TPixel r, TPixel g, TPixel b,
92 const char *name =
"UserDefined");
94 const char *name =
"UserDefined");
112 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
121 void operator=(const
Self &) ITK_DELETE_FUNCTION;
127 #ifndef ITK_MANUAL_INSTANTIATION
128 #include "itkColorTable.hxx"
std::vector< RGBPixel< TPixel > > m_Color
SmartPointer< Self > Pointer
TPixel GetColorComponent(unsigned int colorId, char rgb)
unsigned int GetClosestColorTableId(TPixel r, TPixel g, TPixel b)
unsigned int m_NumberOfColors
SmartPointer< const Self > ConstPointer
bool SetColor(unsigned int c, TPixel r, TPixel g, TPixel b, const char *name="UserDefined")
Define a color table for image visualisation.
Control indentation during Print() invocation.
void UseRandomColors(unsigned int n=256)
void UseHeatColors(unsigned int n=256)
std::string GetColorName(unsigned int colorId)
Base class for most ITK classes.
RGBPixel< TPixel > GetColor(unsigned int colorId)
void UseGrayColors(unsigned int n=256)
std::vector< std::string > m_ColorName
virtual void PrintSelf(std::ostream &os, Indent indent) const override