ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkLabelToRGBImageFilter.h>
Static Public Member Functions | |
static Pointer | New () |
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.
|
protected |
|
inlineprotectedvirtual |
Definition at line 104 of file itkLabelToRGBImageFilter.h.
|
private |
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::AddColor | ( | ComponentType | r, |
ComponentType | g, | ||
ComponentType | b | ||
) |
Add color to the LUT container
|
protectedvirtual |
Process to execute before entering the multithreaded section
Reimplemented from itk::ImageSource< TOutputImage >.
|
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 > >.
|
protectedvirtual |
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 |
Set/Get the background color in the output image
|
virtual |
Set/Get the background value
|
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 |
Method for creation through the object factory.
Reimplemented from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > >.
|
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 > >.
|
protectedvirtual |
Print internal ivars
Reimplemented from itk::InPlaceImageFilter< TLabelImage, TOutputImage >.
void itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::ResetColors | ( | ) |
Empty the color LUT container
|
virtual |
Set/Get the background color in the output image
|
virtual |
Set/Get the background value
|
private |
Definition at line 118 of file itkLabelToRGBImageFilter.h.
|
private |
Definition at line 119 of file itkLabelToRGBImageFilter.h.