ITK  4.2.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Private Attributes
itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel > Class Template Reference

#include <itkLabelOverlayFunctor.h>

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

List of all members.

Public Types

typedef TRGBPixel::ComponentType ComponentType

Public Member Functions

void AddColor (ComponentType r, ComponentType g, ComponentType b)
unsigned int GetNumberOfColors () const
 LabelOverlayFunctor ()
bool operator!= (const LabelOverlayFunctor &l) const
TRGBPixel operator() (const TInputPixel &p1, const TLabel &p2) const
void ResetColors ()
void SetBackgroundValue (TLabel v)
void SetOpacity (double opacity)
 ~LabelOverlayFunctor ()

Private Attributes

TLabel m_BackgroundValue
double m_Opacity
Functor::LabelToRGBFunctor
< TLabel, TRGBPixel > 
m_RGBFunctor

Detailed Description

template<class TInputPixel, class TLabel, class TRGBPixel>
class itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >

Functor for applying a colormap to a label image and combine it with a grayscale image.

This functor class used internally by LabelOverlayImageFilter

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.
See also:
LabelOverlayImageFilter LabelToRGBFunctor

Definition at line 47 of file itkLabelOverlayFunctor.h.


Member Typedef Documentation

template<class TInputPixel, class TLabel, class TRGBPixel>
typedef TRGBPixel::ComponentType itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::ComponentType

type of the color component

Definition at line 118 of file itkLabelOverlayFunctor.h.


Constructor & Destructor Documentation

template<class TInputPixel, class TLabel, class TRGBPixel>
itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::LabelOverlayFunctor ( )
inline

Definition at line 50 of file itkLabelOverlayFunctor.h.

template<class TInputPixel, class TLabel, class TRGBPixel>
itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::~LabelOverlayFunctor ( )
inline

Definition at line 94 of file itkLabelOverlayFunctor.h.


Member Function Documentation

template<class TInputPixel, class TLabel, class TRGBPixel>
void itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::AddColor ( ComponentType  r,
ComponentType  g,
ComponentType  b 
)
inline

Definition at line 120 of file itkLabelOverlayFunctor.h.

template<class TInputPixel, class TLabel, class TRGBPixel>
unsigned int itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::GetNumberOfColors ( ) const
inline

Definition at line 112 of file itkLabelOverlayFunctor.h.

template<class TInputPixel, class TLabel, class TRGBPixel>
bool itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::operator!= ( const LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel > &  l) const
inline

Definition at line 86 of file itkLabelOverlayFunctor.h.

template<class TInputPixel, class TLabel, class TRGBPixel>
TRGBPixel itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::operator() ( const TInputPixel &  p1,
const TLabel &  p2 
) const
inline

Definition at line 58 of file itkLabelOverlayFunctor.h.

template<class TInputPixel, class TLabel, class TRGBPixel>
void itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::ResetColors ( )
inline

Definition at line 107 of file itkLabelOverlayFunctor.h.

template<class TInputPixel, class TLabel, class TRGBPixel>
void itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::SetBackgroundValue ( TLabel  v)
inline

Definition at line 101 of file itkLabelOverlayFunctor.h.

template<class TInputPixel, class TLabel, class TRGBPixel>
void itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::SetOpacity ( double  opacity)
inline

Definition at line 96 of file itkLabelOverlayFunctor.h.


Member Data Documentation

template<class TInputPixel, class TLabel, class TRGBPixel>
TLabel itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_BackgroundValue
private
template<class TInputPixel, class TLabel, class TRGBPixel>
double itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_Opacity
private
template<class TInputPixel, class TLabel, class TRGBPixel>
Functor::LabelToRGBFunctor< TLabel, TRGBPixel > itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_RGBFunctor
private

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