ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkLabelOverlayImageFilter.h>
Apply a colormap to a label image and put it on top of the input image.
Apply a colormap to a label image and put it on top of the input image. The set of colors is a good selection of distinct colors. The opacity of the label image can be defined by the user. The user can also choose if the want to use a background and which label value is the background. A background label produce a gray pixel with the same intensity than the input one.
This class was contributed to the Insight Journal https://hdl.handle.net/1926/172
Definition at line 55 of file itkLabelOverlayImageFilter.h.
Public Types | |
typedef OutputPixelType::ComponentType | ComponentType |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage | InputImageType |
typedef TInputImage::PixelType | InputPixelType |
typedef TLabelImage | LabelImageType |
typedef TLabelImage::PixelType | LabelPixelType |
typedef TOutputImage | OutputImageType |
typedef TOutputImage::PixelType | OutputPixelType |
typedef SmartPointer< Self > | Pointer |
typedef LabelOverlayImageFilter | Self |
typedef BinaryFunctorImageFilter < TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor < typename TInputImage::PixelType, typename TLabelImage::PixelType, typename TOutputImage::PixelType > > | Superclass |
Public Types inherited from itk::BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< TInputImage::PixelType, TLabelImage::PixelType, TOutputImage::PixelType > > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SimpleDataObjectDecorator < Input1ImagePixelType > | DecoratedInput1ImagePixelType |
typedef SimpleDataObjectDecorator < Input2ImagePixelType > | DecoratedInput2ImagePixelType |
typedef Functor::LabelOverlayFunctor < TInputImage::PixelType, TLabelImage::PixelType, TOutputImage::PixelType > | FunctorType |
typedef Input1ImageType::PixelType | Input1ImagePixelType |
typedef Input1ImageType::ConstPointer | Input1ImagePointer |
typedef Input1ImageType::RegionType | Input1ImageRegionType |
typedef TInputImage | Input1ImageType |
typedef Input2ImageType::PixelType | Input2ImagePixelType |
typedef Input2ImageType::ConstPointer | Input2ImagePointer |
typedef Input2ImageType::RegionType | Input2ImageRegionType |
typedef TLabelImage | Input2ImageType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef BinaryFunctorImageFilter | Self |
typedef InPlaceImageFilter < TInputImage, TOutputImage > | Superclass |
Public Types inherited from itk::InPlaceImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | 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 < TInputImage, TOutputImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | 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 MultiThreader | MultiThreaderType |
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::BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< TInputImage::PixelType, 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 Attributes | |
LabelPixelType | m_BackgroundValue |
double | m_Opacity |
typedef OutputPixelType::ComponentType itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::ComponentType |
type of the color component
Definition at line 127 of file itkLabelOverlayImageFilter.h.
typedef SmartPointer< const Self > itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::ConstPointer |
Definition at line 74 of file itkLabelOverlayImageFilter.h.
typedef TInputImage itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::InputImageType |
Definition at line 78 of file itkLabelOverlayImageFilter.h.
typedef TInputImage::PixelType itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::InputPixelType |
Definition at line 82 of file itkLabelOverlayImageFilter.h.
typedef TLabelImage itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::LabelImageType |
Definition at line 77 of file itkLabelOverlayImageFilter.h.
typedef TLabelImage::PixelType itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::LabelPixelType |
Definition at line 81 of file itkLabelOverlayImageFilter.h.
typedef TOutputImage itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::OutputImageType |
Definition at line 76 of file itkLabelOverlayImageFilter.h.
typedef TOutputImage::PixelType itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::OutputPixelType |
Definition at line 80 of file itkLabelOverlayImageFilter.h.
typedef SmartPointer< Self > itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::Pointer |
Definition at line 73 of file itkLabelOverlayImageFilter.h.
typedef LabelOverlayImageFilter itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 65 of file itkLabelOverlayImageFilter.h.
typedef BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< typename TInputImage::PixelType, typename TLabelImage::PixelType, typename TOutputImage::PixelType > > itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::Superclass |
Definition at line 71 of file itkLabelOverlayImageFilter.h.
|
protected |
|
inlineoverrideprotectedvirtual |
Definition at line 134 of file itkLabelOverlayImageFilter.h.
void itk::LabelOverlayImageFilter< TInputImage, 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 |
Generate the information describing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information.
Reimplemented from itk::BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< TInputImage::PixelType, TLabelImage::PixelType, TOutputImage::PixelType > >.
|
virtual |
Set/Get the background value
const LabelImageType* itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::GetLabelImage | ( | ) | const |
Get the label image
|
virtual |
Runtime information support.
Reimplemented from itk::BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< TInputImage::PixelType, TLabelImage::PixelType, TOutputImage::PixelType > >.
unsigned int itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::GetNumberOfColors | ( | ) | const |
Get number of colors in the LUT container
|
virtual |
Set/Get the opacity of the colored label image. The value must be between 0 and 1
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Print internal ivars
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >.
void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::ResetColors | ( | ) |
Empty the color LUT container
|
virtual |
Set/Get the background value
void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::SetLabelImage | ( | const TLabelImage * | input | ) |
Set the label image
|
virtual |
Set/Get the opacity of the colored label image. The value must be between 0 and 1
|
private |
Definition at line 148 of file itkLabelOverlayImageFilter.h.
|
private |
Definition at line 145 of file itkLabelOverlayImageFilter.h.