Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel > Class Template Reference

#include <itkLabelToRGBFunctor.h>

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

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Functor for converting labels into RGB triplets.

This functor class used internally by LabelToRGBImageFilter

Author:
Gaëtan Lehmann. Biologie du Développement 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 41 of file itkLabelToRGBFunctor.h.

Public Types

typedef LabelToRGBFunctor Self

Public Member Functions

void AddColor (unsigned char r, unsigned char g, unsigned char b)
 LabelToRGBFunctor ()
bool operator!= (const Self &l) const
TRGBPixel operator() (const TLabel &p)
bool operator== (const Self &other) const
void SetBackgroundValue (TLabel v)
void SetUseBackground (bool b)
 ~LabelToRGBFunctor ()

Public Attributes

TLabel m_BackgroundValue
std::vector< TRGBPixel > m_Colors
bool m_UseBackground


Member Typedef Documentation

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

Definition at line 45 of file itkLabelToRGBFunctor.h.


Constructor & Destructor Documentation

template<class TLabel, class TRGBPixel>
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::LabelToRGBFunctor (  )  [inline]

Definition at line 47 of file itkLabelToRGBFunctor.h.

References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::AddColor(), itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue, and itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_UseBackground.

template<class TLabel, class TRGBPixel>
itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::~LabelToRGBFunctor (  )  [inline]

Definition at line 150 of file itkLabelToRGBFunctor.h.


Member Function Documentation

template<class TLabel, class TRGBPixel>
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.

References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_Colors.

Referenced by itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::LabelToRGBFunctor().

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

Definition at line 128 of file itkLabelToRGBFunctor.h.

References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue, and itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_UseBackground.

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

Definition at line 100 of file itkLabelToRGBFunctor.h.

References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue, itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_Colors, and itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_UseBackground.

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

Definition at line 135 of file itkLabelToRGBFunctor.h.

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

Definition at line 140 of file itkLabelToRGBFunctor.h.

References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue.

template<class TLabel, class TRGBPixel>
void itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::SetUseBackground ( bool  b  )  [inline]

Definition at line 145 of file itkLabelToRGBFunctor.h.

References itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_UseBackground.


Member Data Documentation

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

Definition at line 156 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().

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

Definition at line 152 of file itkLabelToRGBFunctor.h.

Referenced by itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::AddColor(), and itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::operator()().

template<class TLabel, class TRGBPixel>
bool itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_UseBackground

Definition at line 154 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 >::SetUseBackground().


The documentation for this class was generated from the following file:
Generated at Sun Sep 23 23:38:28 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000