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

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

#include <itkLabelToRGBFunctor.h>

Inheritance diagram for itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >:
Inheritance graph
[legend]
Collaboration diagram for itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >:
Collaboration graph
[legend]

List of all members.

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

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:
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 41 of file itkLabelToRGBFunctor.h.


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.

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

Definition at line 162 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]
template<class TLabel, class TRGBPixel>
unsigned int itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::GetNumberOfColors (  )  const [inline]

Definition at line 135 of file itkLabelToRGBFunctor.h.

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

Definition at line 140 of file itkLabelToRGBFunctor.h.

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

Definition at line 102 of file itkLabelToRGBFunctor.h.

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

Definition at line 147 of file itkLabelToRGBFunctor.h.

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

Definition at line 129 of file itkLabelToRGBFunctor.h.

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

Definition at line 157 of file itkLabelToRGBFunctor.h.

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

Definition at line 152 of file itkLabelToRGBFunctor.h.


Member Data Documentation

template<class TLabel, class TRGBPixel>
TRGBPixel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundColor
template<class TLabel, class TRGBPixel>
TLabel itk::Functor::LabelToRGBFunctor< TLabel, TRGBPixel >::m_BackgroundValue
template<class TLabel, class 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 Apr 17 01:58:56 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000