ITK
6.0.0
Insight Toolkit
|
#include <itkLabelToRGBFunctor.h>
Functor for converting labels into RGB triplets.
This functor class used internally by LabelToRGBImageFilter
This code was contributed in the Insight Journal paper: "The watershed transform in ITK - discussion and new developments" by Beare R., Lehmann G. https://doi.org/10.54294/lf8u75
Definition at line 50 of file itkLabelToRGBFunctor.h.
Public Types | |
using | Self = LabelToRGBFunctor |
Public Member Functions | |
void | AddColor (unsigned char r, unsigned char g, unsigned char b) |
unsigned int | GetNumberOfColors () const |
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (Self) | |
LabelToRGBFunctor () | |
TRGBPixel | operator() (const TLabel &p) const |
bool | operator== (const Self &other) const |
void | ResetColors () |
void | SetBackgroundColor (TRGBPixel rgb) |
void | SetBackgroundValue (TLabel v) |
~LabelToRGBFunctor ()=default | |
Public Attributes | |
TRGBPixel | m_BackgroundColor |
TLabel | m_BackgroundValue |
std::vector< TRGBPixel > | m_Colors |
using itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::Self = LabelToRGBFunctor |
Definition at line 53 of file itkLabelToRGBFunctor.h.
|
inline |
Definition at line 55 of file itkLabelToRGBFunctor.h.
References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::AddColor(), itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundColor, itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue, and itk::NumericTraits< T >::SetLength().
|
default |
|
inline |
Definition at line 107 of file itkLabelToRGBFunctor.h.
References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_Colors, itk::NumericTraits< T >::max(), and itk::NumericTraits< T >::SetLength().
Referenced by itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::LabelToRGBFunctor().
|
inline |
Definition at line 131 of file itkLabelToRGBFunctor.h.
References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_Colors.
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION | ( | Self | ) |
|
inline |
|
inline |
|
inline |
Definition at line 124 of file itkLabelToRGBFunctor.h.
References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_Colors.
|
inline |
Definition at line 152 of file itkLabelToRGBFunctor.h.
References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundColor.
|
inline |
Definition at line 146 of file itkLabelToRGBFunctor.h.
References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue.
TRGBPixel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundColor |
Definition at line 161 of file itkLabelToRGBFunctor.h.
Referenced by itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::LabelToRGBFunctor(), itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator()(), itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator==(), and itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::SetBackgroundColor().
TLabel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue |
Definition at line 163 of file itkLabelToRGBFunctor.h.
Referenced by itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::LabelToRGBFunctor(), itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator()(), itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator==(), and itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::SetBackgroundValue().
std::vector<TRGBPixel> itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_Colors |
Definition at line 159 of file itkLabelToRGBFunctor.h.
Referenced by itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::AddColor(), itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::GetNumberOfColors(), itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator()(), itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator==(), and itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::ResetColors().