18 #ifndef itkColorTable_h
19 #define itkColorTable_h
39 template <
typename TPixel>
70 UseGrayColors(
unsigned int n = 256);
78 UseHeatColors(
unsigned int n = 256);
85 UseRandomColors(
unsigned int n = 256);
88 itkGetConstMacro(NumberOfColors,
unsigned int);
92 GetColor(
unsigned int c);
99 SetColor(
unsigned int c, TPixel r, TPixel g, TPixel b,
const char * name =
"UserDefined");
101 SetColor(
unsigned int c,
RGBPixel<TPixel> pixel,
const char * name =
"UserDefined");
108 GetColorComponent(
unsigned int c,
char rgb);
112 GetColorName(
unsigned int c);
118 GetClosestColorTableId(TPixel r, TPixel g, TPixel b);
123 PrintSelf(std::ostream & os,
Indent indent)
const override;
132 unsigned int m_NumberOfColors{ 0 };
139 #ifndef ITK_MANUAL_INSTANTIATION
140 # include "itkColorTable.hxx"