Functor for converting labels into RGB triplets. More...
#include <itkLabelToRGBFunctor.h>
Public Types | |
typedef LabelToRGBFunctor | Self |
Public Member Functions | |
void | AddColor (unsigned char r, unsigned char g, unsigned char b) |
unsigned int | GetNumberOfColors () const |
LabelToRGBFunctor () | |
bool | operator!= (const Self &l) const |
TRGBPixel | operator() (const TLabel &p) const |
bool | operator== (const Self &other) const |
void | ResetColors () |
void | SetBackgroundColor (TRGBPixel rgb) |
void | SetBackgroundValue (TLabel v) |
~LabelToRGBFunctor () | |
Public Attributes | |
TRGBPixel | m_BackgroundColor |
TLabel | m_BackgroundValue |
std::vector< TRGBPixel > | m_Colors |
Functor for converting labels into RGB triplets.
This functor class used internally by LabelToRGBImageFilter
Definition at line 41 of file itkLabelToRGBFunctor.h.
typedef LabelToRGBFunctor itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::Self |
Definition at line 45 of file itkLabelToRGBFunctor.h.
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::LabelToRGBFunctor | ( | ) | [inline] |
Definition at line 47 of file itkLabelToRGBFunctor.h.
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::~LabelToRGBFunctor | ( | ) | [inline] |
Definition at line 162 of file itkLabelToRGBFunctor.h.
void itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::AddColor | ( | unsigned char | r, | |
unsigned char | g, | |||
unsigned char | b | |||
) | [inline] |
Definition at line 115 of file itkLabelToRGBFunctor.h.
Referenced by itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::LabelToRGBFunctor().
unsigned int itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::GetNumberOfColors | ( | ) | const [inline] |
Definition at line 135 of file itkLabelToRGBFunctor.h.
bool itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator!= | ( | const Self & | l | ) | const [inline] |
Definition at line 140 of file itkLabelToRGBFunctor.h.
TRGBPixel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator() | ( | const TLabel & | p | ) | const [inline] |
Definition at line 102 of file itkLabelToRGBFunctor.h.
bool itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator== | ( | const Self & | other | ) | const [inline] |
Definition at line 147 of file itkLabelToRGBFunctor.h.
void itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::ResetColors | ( | ) | [inline] |
Definition at line 129 of file itkLabelToRGBFunctor.h.
void itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::SetBackgroundColor | ( | TRGBPixel | rgb | ) | [inline] |
Definition at line 157 of file itkLabelToRGBFunctor.h.
void itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::SetBackgroundValue | ( | TLabel | v | ) | [inline] |
Definition at line 152 of file itkLabelToRGBFunctor.h.
TRGBPixel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundColor |
Definition at line 166 of file itkLabelToRGBFunctor.h.
Referenced by itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::LabelToRGBFunctor(), itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::operator!=(), itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::operator()(), and itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::SetBackgroundColor().
TLabel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue |
Definition at line 168 of file itkLabelToRGBFunctor.h.
Referenced by itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::LabelToRGBFunctor(), itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::operator!=(), itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::operator()(), and itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::SetBackgroundValue().
std::vector< TRGBPixel > itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_Colors |
Definition at line 164 of file itkLabelToRGBFunctor.h.
Referenced by itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::AddColor(), itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::GetNumberOfColors(), itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::operator()(), and itk::Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType >::ResetColors().