18 #ifndef itkColorTable_h
19 #define itkColorTable_h
39 template<
typename TPixel >
62 void UseDiscreteColors();
68 void UseGrayColors(
unsigned int n = 256);
75 void UseHeatColors(
unsigned int n = 256);
81 void UseRandomColors(
unsigned int n = 256);
84 itkGetConstMacro(NumberOfColors,
unsigned int);
93 bool SetColor(
unsigned int c, TPixel r, TPixel g, TPixel b,
94 const char *name =
"UserDefined");
96 const char *name =
"UserDefined");
102 TPixel GetColorComponent(
unsigned int colorId,
char rgb);
105 std::string GetColorName(
unsigned int colorId);
110 unsigned int GetClosestColorTableId(TPixel r, TPixel g, TPixel b);
114 void PrintSelf(std::ostream & os,
Indent indent)
const override;
122 unsigned int m_NumberOfColors{ 0 };
129 #ifndef ITK_MANUAL_INSTANTIATION
130 #include "itkColorTable.hxx"
std::vector< RGBPixel< TPixel > > ColorVectorType
Define a color table for image visualisation.
std::vector< std::string > ColorNameVectorType
Control indentation during Print() invocation.
Base class for most ITK classes.
ColorNameVectorType m_ColorName