18#ifndef itkColorTable_h
19#define itkColorTable_h
39template <
typename TComponent>
88 itkGetConstMacro(NumberOfColors,
unsigned int);
99 SetColor(
unsigned int c, TComponent r, TComponent g, TComponent b,
const char * name =
"UserDefined");
132 unsigned int m_NumberOfColors{ 0 };
139#ifndef ITK_MANUAL_INSTANTIATION
140# include "itkColorTable.hxx"
Define a color table for image visualisation.
bool SetColor(unsigned int c, TComponent r, TComponent g, TComponent b, const char *name="UserDefined")
std::vector< std::string > ColorNameVectorType
void PrintSelf(std::ostream &os, Indent indent) const override
RGBPixel< TComponent > GetColor(unsigned int c)
void UseHeatColors(unsigned int n=256)
void UseGrayColors(unsigned int n=256)
TComponent GetColorComponent(unsigned int c, char rgb)
std::string GetColorName(unsigned int c)
bool SetColor(unsigned int c, RGBPixel< TComponent > pixel, const char *name="UserDefined")
unsigned int GetClosestColorTableId(TComponent r, TComponent g, TComponent b)
void UseRandomColors(unsigned int n=256)
std::vector< RGBPixel< TComponent > > ColorVectorType
Control indentation during Print() invocation.
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....