18 #ifndef itkColorTable_h
19 #define itkColorTable_h
39 template <
typename TComponent>
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, TComponent r, TComponent g, TComponent b,
const char * name =
"UserDefined");
108 GetColorComponent(
unsigned int c,
char rgb);
112 GetColorName(
unsigned int c);
118 GetClosestColorTableId(TComponent r, TComponent g, TComponent 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"