ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkLabelToRGBImageFilter.h>
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.
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 Types inherited from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Functor::LabelToRGBFunctor < TLabelImage::PixelType, TOutputImage::PixelType > | FunctorType |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::ConstPointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TLabelImage | InputImageType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef UnaryFunctorImageFilter | Self |
typedef InPlaceImageFilter < TLabelImage, TOutputImage > | Superclass |
Public Types inherited from itk::InPlaceImageFilter< TLabelImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TLabelImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef Superclass::OutputImageType | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef InPlaceImageFilter | Self |
typedef ImageToImageFilter < TLabelImage, TOutputImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TLabelImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TLabelImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource< TOutputImage > | Superclass |
Public Types inherited from itk::ImageSource< TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< TLabelImage::PixelType, TOutputImage::PixelType > > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Private Member Functions | |
LabelToRGBImageFilter (const Self &) ITK_DELETE_FUNCTION | |
void | operator= (const Self &) ITK_DELETE_FUNCTION |
Private Attributes | |
OutputPixelType | m_BackgroundColor |
LabelPixelType | m_BackgroundValue |
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 |
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 |
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 |
Definition at line 59 of file itkLabelToRGBImageFilter.h.
typedef LabelToRGBImageFilter itk::LabelToRGBImageFilter< TLabelImage, TOutputImage >::Self |
Standard class typedefs.
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 |
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
|
overrideprotectedvirtual |
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::Object.
|
overrideprotectedvirtual |
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.
|
private |
|
overrideprotectedvirtual |
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.