18 #ifndef itkColorTable_h
19 #define itkColorTable_h
39 template<
typename TPixel >
60 void UseDiscreteColors();
66 void UseGrayColors(
unsigned int n = 256);
73 void UseHeatColors(
unsigned int n = 256);
79 void UseRandomColors(
unsigned int n = 256);
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");
100 TPixel GetColorComponent(
unsigned int colorId,
char rgb);
103 std::string GetColorName(
unsigned int colorId);
108 unsigned int GetClosestColorTableId(TPixel r, TPixel g, TPixel b);
112 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
129 #ifndef ITK_MANUAL_INSTANTIATION
130 #include "itkColorTable.hxx"
SmartPointer< Self > Pointer
unsigned int m_NumberOfColors
std::vector< std::string > ColorNameVectorType
SmartPointer< const Self > ConstPointer
Define a color table for image visualisation.
Control indentation during Print() invocation.
std::vector< RGBPixel< TPixel > > ColorVectorType
Base class for most ITK classes.
ColorNameVectorType m_ColorName