ITK  5.4.0
Insight Toolkit
Public Types | Public Member Functions | Public Attributes | List of all members
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel > Class Template Reference

#include <itkLabelToRGBFunctor.h>

Detailed Description

template<typename TLabel, typename TRGBPixel>
class itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >

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://www.insight-journal.org/browse/publication/92

Author
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.
Richard Beare. Department of Medicine, Monash University, Melbourne, Australia.
See also
LabelToRGBImageFilter

Definition at line 50 of file itkLabelToRGBFunctor.h.

+ Collaboration diagram for itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >:

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
 

Member Typedef Documentation

◆ Self

template<typename TLabel, typename TRGBPixel>
using itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::Self = LabelToRGBFunctor

Definition at line 53 of file itkLabelToRGBFunctor.h.

Constructor & Destructor Documentation

◆ LabelToRGBFunctor()

template<typename TLabel, typename TRGBPixel>
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::LabelToRGBFunctor ( )
inline

Definition at line 55 of file itkLabelToRGBFunctor.h.

◆ ~LabelToRGBFunctor()

template<typename TLabel, typename TRGBPixel>
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::~LabelToRGBFunctor ( )
default

Member Function Documentation

◆ AddColor()

template<typename TLabel, typename TRGBPixel>
void itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::AddColor ( unsigned char  r,
unsigned char  g,
unsigned char  b 
)
inline

◆ GetNumberOfColors()

template<typename TLabel, typename TRGBPixel>
unsigned int itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::GetNumberOfColors ( ) const
inline

Definition at line 131 of file itkLabelToRGBFunctor.h.

◆ ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION()

template<typename TLabel, typename TRGBPixel>
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION ( Self  )

◆ operator()()

template<typename TLabel, typename TRGBPixel>
TRGBPixel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator() ( const TLabel &  p) const
inline

Definition at line 93 of file itkLabelToRGBFunctor.h.

◆ operator==()

template<typename TLabel, typename TRGBPixel>
bool itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator== ( const Self other) const
inline

Definition at line 137 of file itkLabelToRGBFunctor.h.

◆ ResetColors()

template<typename TLabel, typename TRGBPixel>
void itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::ResetColors ( )
inline

Definition at line 124 of file itkLabelToRGBFunctor.h.

◆ SetBackgroundColor()

template<typename TLabel, typename TRGBPixel>
void itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::SetBackgroundColor ( TRGBPixel  rgb)
inline

Definition at line 152 of file itkLabelToRGBFunctor.h.

◆ SetBackgroundValue()

template<typename TLabel, typename TRGBPixel>
void itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::SetBackgroundValue ( TLabel  v)
inline

Definition at line 146 of file itkLabelToRGBFunctor.h.

Member Data Documentation

◆ m_BackgroundColor

template<typename TLabel, typename TRGBPixel>
TRGBPixel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundColor

◆ m_BackgroundValue

template<typename TLabel, typename TRGBPixel>
TLabel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue

◆ m_Colors

template<typename TLabel, typename TRGBPixel>
std::vector<TRGBPixel> itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_Colors

The documentation for this class was generated from the following file: