ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkLabelToRGBImageFilter.h>
Public Types | |
typedef OutputPixelType::ComponentType | ComponentType |
typedef SmartPointer< const Self > | ConstPointer |
typedef TLabelImage | LabelImageType |
typedef TLabelImage::PixelType | LabelPixelType |
typedef TOutputImage | OutputImageType |
typedef TOutputImage::PixelType | OutputPixelType |
typedef NumericTraits < OutputPixelType >::ValueType | OutputPixelValueType |
typedef SmartPointer< Self > | Pointer |
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 LabelPixelType & | GetBackgroundValue () |
virtual void | SetBackgroundColor (OutputPixelType _arg) |
virtual const OutputPixelType & | GetBackgroundColor () |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | BeforeThreadedGenerateData (void) |
void | GenerateOutputInformation () |
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 |
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
Definition at line 49 of file itkLabelToRGBImageFilter.h.
typedef OutputPixelType::ComponentType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::ComponentType |
Type of the color component
Definition at line 97 of file itkLabelToRGBImageFilter.h.
typedef SmartPointer< const Self > itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::ConstPointer |
Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.
Definition at line 60 of file itkLabelToRGBImageFilter.h.
typedef TLabelImage itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::LabelImageType |
Definition at line 68 of file itkLabelToRGBImageFilter.h.
typedef TLabelImage::PixelType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::LabelPixelType |
Definition at line 71 of file itkLabelToRGBImageFilter.h.
typedef TOutputImage itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::OutputImageType |
Superclass typedefs.
Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.
Definition at line 67 of file itkLabelToRGBImageFilter.h.
typedef TOutputImage::PixelType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::OutputPixelType |
Definition at line 70 of file itkLabelToRGBImageFilter.h.
typedef NumericTraits< OutputPixelType >::ValueType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::OutputPixelValueType |
Definition at line 72 of file itkLabelToRGBImageFilter.h.
typedef SmartPointer< Self > itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::Pointer |
Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.
Definition at line 59 of file itkLabelToRGBImageFilter.h.
typedef LabelToRGBImageFilter itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::Self |
Standard class typedefs.
Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.
Definition at line 58 of file itkLabelToRGBImageFilter.h.
typedef UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< typename TLabelImage::PixelType, typename TOutputImage::PixelType > > itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::Superclass |
Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.
Definition at line 65 of file itkLabelToRGBImageFilter.h.
itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::LabelToRGBImageFilter | ( | ) | [protected] |
virtual itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::~LabelToRGBImageFilter | ( | ) | [inline, protected, virtual] |
Definition at line 104 of file itkLabelToRGBImageFilter.h.
itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::LabelToRGBImageFilter | ( | const Self & | ) | [private] |
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::AddColor | ( | ComponentType | r, |
ComponentType | g, | ||
ComponentType | b | ||
) |
Add color to the LUT container
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::BeforeThreadedGenerateData | ( | void | ) | [protected, virtual] |
Process to execute before entering the multithreaded section
Reimplemented from itk::ImageSource< 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 > >.
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::GenerateOutputInformation | ( | void | ) | [protected, virtual] |
UnaryFunctorImageFilter can produce an image which is a different resolution than its input image. As such, UnaryFunctorImageFilter needs to provide an implementation for GenerateOutputInformation() in order to inform the pipeline execution model. The original documentation of this method is below.
Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.
virtual const OutputPixelType& itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::GetBackgroundColor | ( | ) | [virtual] |
Set/Get the background color in the output image
virtual const LabelPixelType& itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::GetBackgroundValue | ( | ) | [virtual] |
Set/Get the background value
virtual const char* itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::GetNameOfClass | ( | ) | const [virtual] |
Runtime information support.
Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.
unsigned int itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::GetNumberOfColors | ( | ) | const |
Get number of colors in the LUT container
static Pointer itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.
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 > >.
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Print internal ivars
Reimplemented from itk::InPlaceImageFilter< TLabelImage, TOutputImage >.
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::ResetColors | ( | ) |
Empty the color LUT container
virtual void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::SetBackgroundColor | ( | OutputPixelType | _arg | ) | [virtual] |
Set/Get the background color in the output image
virtual void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::SetBackgroundValue | ( | LabelPixelType | _arg | ) | [virtual] |
Set/Get the background value
OutputPixelType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::m_BackgroundColor [private] |
Definition at line 118 of file itkLabelToRGBImageFilter.h.
LabelPixelType itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::m_BackgroundValue [private] |
Definition at line 119 of file itkLabelToRGBImageFilter.h.