ITK  4.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::LabelToRGBImageFilter< TLabelImage, TOutputImage > Class Template Reference

Apply a colormap to a label image. More...

#include <itkLabelToRGBImageFilter.h>

Inheritance diagram for itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >:
Collaboration diagram for itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >:

List of all members.

Public Types

typedef
OutputPixelType::ComponentType 
ComponentType
typedef SmartPointer< const SelfConstPointer
typedef TLabelImage LabelImageType
typedef TLabelImage::PixelType LabelPixelType
typedef TOutputImage OutputImageType
typedef TOutputImage::PixelType OutputPixelType
typedef NumericTraits
< OutputPixelType >::ValueType 
OutputPixelValueType
typedef SmartPointer< SelfPointer
typedef LabelToRGBImageFilter Self
typedef
UnaryFunctorImageFilter
< TLabelImage, TOutputImage,
Functor::LabelToRGBFunctor
< typename
TLabelImage::PixelType,
typename
TOutputImage::PixelType > > 
Superclass

Public Member Functions

void AddColor (ComponentType r, ComponentType g, ComponentType b)
virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
unsigned int GetNumberOfColors () const
void ResetColors ()
virtual void SetBackgroundValue (LabelPixelType _arg)
virtual const LabelPixelTypeGetBackgroundValue ()
virtual void SetBackgroundColor (OutputPixelType _arg)
virtual const OutputPixelTypeGetBackgroundColor ()

Static Public Member Functions

static Pointer New ()

Protected Member Functions

void BeforeThreadedGenerateData (void)
 LabelToRGBImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~LabelToRGBImageFilter ()

Private Member Functions

 LabelToRGBImageFilter (const Self &)
void operator= (const Self &)

Private Attributes

OutputPixelType m_BackgroundColor
LabelPixelType m_BackgroundValue

Detailed Description

template<class TLabelImage, typename TOutputImage>
class itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >

Apply a colormap to a label image.

Apply a colormap to a label image. The set of colors is a good selection of distinct colors. The user can choose to use a background value. In that case, a gray pixel with the same intensity than the background label is produced.

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:
ScalarToRGBPixelFunctor LabelOverlayImageFilter

Definition at line 49 of file itkLabelToRGBImageFilter.h.


Member Typedef Documentation

template<class TLabelImage , typename TOutputImage >
typedef OutputPixelType::ComponentType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::ComponentType

Type of the color component

Definition at line 97 of file itkLabelToRGBImageFilter.h.

template<class TLabelImage , typename TOutputImage >
typedef SmartPointer< const Self > itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::ConstPointer
template<class TLabelImage , typename TOutputImage >
typedef TLabelImage itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::LabelImageType

Definition at line 68 of file itkLabelToRGBImageFilter.h.

template<class TLabelImage , typename TOutputImage >
typedef TLabelImage::PixelType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::LabelPixelType

Definition at line 71 of file itkLabelToRGBImageFilter.h.

template<class TLabelImage , typename TOutputImage >
typedef TOutputImage itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::OutputImageType
template<class TLabelImage , typename TOutputImage >
typedef TOutputImage::PixelType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::OutputPixelType

Definition at line 70 of file itkLabelToRGBImageFilter.h.

template<class TLabelImage , typename TOutputImage >
typedef NumericTraits< OutputPixelType >::ValueType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::OutputPixelValueType

Definition at line 72 of file itkLabelToRGBImageFilter.h.

template<class TLabelImage , typename TOutputImage >
typedef SmartPointer< Self > itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::Pointer
template<class TLabelImage , typename TOutputImage >
typedef LabelToRGBImageFilter itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::Self
template<class TLabelImage , typename TOutputImage >
typedef UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< typename TLabelImage::PixelType, typename TOutputImage::PixelType > > itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

template<class TLabelImage , typename TOutputImage >
itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::LabelToRGBImageFilter ( ) [protected]
template<class TLabelImage , typename TOutputImage >
virtual itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::~LabelToRGBImageFilter ( ) [inline, protected, virtual]

Definition at line 104 of file itkLabelToRGBImageFilter.h.

template<class TLabelImage , typename TOutputImage >
itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::LabelToRGBImageFilter ( const Self ) [private]

Member Function Documentation

template<class TLabelImage , typename TOutputImage >
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::AddColor ( ComponentType  r,
ComponentType  g,
ComponentType  b 
)

Add color to the LUT container

template<class TLabelImage , typename TOutputImage >
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::BeforeThreadedGenerateData ( void  ) [protected, virtual]

Process to execute before entering the multithreaded section

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TLabelImage , typename TOutputImage >
virtual::itk::LightObject::Pointer itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.

template<class TLabelImage , typename TOutputImage >
virtual const OutputPixelType& itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::GetBackgroundColor ( ) [virtual]

Set/Get the background color in the output image

template<class TLabelImage , typename TOutputImage >
virtual const LabelPixelType& itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::GetBackgroundValue ( ) [virtual]

Set/Get the background value

template<class TLabelImage , typename TOutputImage >
virtual const char* itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::GetNameOfClass ( ) const [virtual]
template<class TLabelImage , typename TOutputImage >
unsigned int itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::GetNumberOfColors ( ) const

Get number of colors in the LUT container

template<class TLabelImage , typename TOutputImage >
static Pointer itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::New ( ) [static]
template<class TLabelImage , typename TOutputImage >
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::operator= ( const Self ) [private]

PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.

Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.

template<class TLabelImage , typename TOutputImage >
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

Print internal ivars

Reimplemented from itk::InPlaceImageFilter< TLabelImage, TOutputImage >.

template<class TLabelImage , typename TOutputImage >
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::ResetColors ( )

Empty the color LUT container

template<class TLabelImage , typename TOutputImage >
virtual void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::SetBackgroundColor ( OutputPixelType  _arg) [virtual]

Set/Get the background color in the output image

template<class TLabelImage , typename TOutputImage >
virtual void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::SetBackgroundValue ( LabelPixelType  _arg) [virtual]

Set/Get the background value


Member Data Documentation

template<class TLabelImage , typename TOutputImage >
OutputPixelType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::m_BackgroundColor [private]

Definition at line 116 of file itkLabelToRGBImageFilter.h.

template<class TLabelImage , typename TOutputImage >
LabelPixelType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::m_BackgroundValue [private]

Definition at line 117 of file itkLabelToRGBImageFilter.h.


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