Orfeo Toolbox  4.0
Public Types | Public Member Functions | Public Attributes | List of all members
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel > Class Template Reference

Functor for converting labels into RGB triplets. More...

#include <itkLabelToRGBFunctor.h>

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

Public Types

typedef LabelToRGBFunctor Self
 

Public Member Functions

 LabelToRGBFunctor ()
 
 ~LabelToRGBFunctor ()
 
void AddColor (unsigned char r, unsigned char g, unsigned char b)
 
unsigned int GetNumberOfColors () const
 
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)
 

Public Attributes

TRGBPixel m_BackgroundColor
 
TLabel m_BackgroundValue
 
std::vector< TRGBPixel > m_Colors
 

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. http://hdl.handle.net/1926/202 http://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.

Member Typedef Documentation

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

Definition at line 54 of file itkLabelToRGBFunctor.h.

Constructor & Destructor Documentation

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

Definition at line 56 of file itkLabelToRGBFunctor.h.

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

Definition at line 176 of file itkLabelToRGBFunctor.h.

Member Function Documentation

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

Definition at line 148 of file itkLabelToRGBFunctor.h.

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

Definition at line 153 of file itkLabelToRGBFunctor.h.

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

Definition at line 113 of file itkLabelToRGBFunctor.h.

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

Definition at line 161 of file itkLabelToRGBFunctor.h.

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

Definition at line 142 of file itkLabelToRGBFunctor.h.

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

Definition at line 171 of file itkLabelToRGBFunctor.h.

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

Member Data Documentation

template<typename TLabel, typename TRGBPixel>
TRGBPixel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundColor
template<typename TLabel, typename TRGBPixel>
TLabel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue
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:

Generated at Sat Mar 8 2014 18:02:25 for Orfeo Toolbox with doxygen 1.8.3.1