ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <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 Member Functions | |
void | AddColor (ComponentType r, ComponentType g, ComponentType b) |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
const LabelImageType * | GetLabelImage () const |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNumberOfColors () const |
void | ResetColors () |
void | SetLabelImage (const TLabelImage *input) |
typedef (Concept::HasValueType< OutputPixelType >) OutputPixelShouldHaveValueType | |
typedef (Concept::BracketOperator< OutputPixelType, unsigned int, typename OutputPixelType::ValueType >) OutputPixelShouldHaveBracketOperator | |
virtual void | SetOpacity (double _arg) |
virtual const double & | GetOpacity () |
virtual void | SetBackgroundValue (LabelPixelType _arg) |
virtual const LabelPixelType & | GetBackgroundValue () |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | BeforeThreadedGenerateData (void) |
void | GenerateOutputInformation () |
LabelOverlayImageFilter () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~LabelOverlayImageFilter () |
Private Member Functions | |
LabelOverlayImageFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
LabelPixelType | m_BackgroundValue |
double | m_Opacity |
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 http://hdl.handle.net/1926/172
Definition at line 54 of file itkLabelOverlayImageFilter.h.
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 |
typedef TInputImage itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::InputImageType |
Some convenient typedefs.
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >.
Definition at line 77 of file itkLabelOverlayImageFilter.h.
typedef TInputImage::PixelType itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::InputPixelType |
Definition at line 81 of file itkLabelOverlayImageFilter.h.
typedef TLabelImage itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::LabelImageType |
Definition at line 76 of file itkLabelOverlayImageFilter.h.
typedef TLabelImage::PixelType itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::LabelPixelType |
Definition at line 80 of file itkLabelOverlayImageFilter.h.
typedef TOutputImage itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::OutputImageType |
Superclass typedefs.
Reimplemented from itk::BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< TInputImage::PixelType, TLabelImage::PixelType, TOutputImage::PixelType > >.
Definition at line 75 of file itkLabelOverlayImageFilter.h.
typedef TOutputImage::PixelType itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::OutputPixelType |
Definition at line 79 of file itkLabelOverlayImageFilter.h.
typedef SmartPointer< Self > itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::Pointer |
typedef LabelOverlayImageFilter itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::Self |
Standard class typedefs.
Reimplemented from itk::BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< TInputImage::PixelType, TLabelImage::PixelType, TOutputImage::PixelType > >.
Definition at line 64 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 |
itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::LabelOverlayImageFilter | ( | ) | [protected] |
virtual itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::~LabelOverlayImageFilter | ( | ) | [inline, protected, virtual] |
Definition at line 134 of file itkLabelOverlayImageFilter.h.
itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::LabelOverlayImageFilter | ( | const Self & | ) | [private] |
void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::AddColor | ( | ComponentType | r, |
ComponentType | g, | ||
ComponentType | b | ||
) |
Add color to the LUT container
void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::BeforeThreadedGenerateData | ( | void | ) | [protected, virtual] |
Process to execute before entering the multithreaded section
Reimplemented from itk::ImageSource< TOutputImage >.
virtual::itk::LightObject::Pointer itk::LabelOverlayImageFilter< TInputImage, 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::BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< TInputImage::PixelType, TLabelImage::PixelType, TOutputImage::PixelType > >.
void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::GenerateOutputInformation | ( | ) | [protected, virtual] |
Generate the information decribing 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 const LabelPixelType& itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::GetBackgroundValue | ( | ) | [virtual] |
Set/Get the background value
const LabelImageType* itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::GetLabelImage | ( | ) | const |
Get the label image
virtual const char* itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::GetNameOfClass | ( | ) | const [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 const double& itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::GetOpacity | ( | ) | [virtual] |
Set/Get the opacity of the colored label image. The value must be between 0 and 1
static Pointer itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< TInputImage::PixelType, TLabelImage::PixelType, TOutputImage::PixelType > >.
void itk::LabelOverlayImageFilter< TInputImage, 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::BinaryFunctorImageFilter< TInputImage, TLabelImage, TOutputImage, Functor::LabelOverlayFunctor< TInputImage::PixelType, TLabelImage::PixelType, TOutputImage::PixelType > >.
void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Print internal ivars
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >.
void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::ResetColors | ( | ) |
End concept checking Empty the color LUT container
virtual void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::SetBackgroundValue | ( | LabelPixelType | _arg | ) | [virtual] |
Set/Get the background value
void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::SetLabelImage | ( | const TLabelImage * | input | ) |
Set the label image
virtual void itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::SetOpacity | ( | double | _arg | ) | [virtual] |
Set/Get the opacity of the colored label image. The value must be between 0 and 1
itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::typedef | ( | Concept::HasValueType< OutputPixelType > | ) |
Begin concept checking This class requires OutputPixelShouldHaveValueType in the form of ( Concept::HasValueType< OutputPixelType > )
itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::typedef | ( | Concept::BracketOperator< OutputPixelType, unsigned int, typename OutputPixelType::ValueType > | ) |
This class requires OutputPixelShouldHaveBracketOperator in the form of ( Concept::BracketOperator< OutputPixelType, unsigned int, typename OutputPixelType::ValueType > )
LabelPixelType itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::m_BackgroundValue [private] |
Definition at line 149 of file itkLabelOverlayImageFilter.h.
double itk::LabelOverlayImageFilter< TInputImage, TLabelImage, TOutputImage >::m_Opacity [private] |
Definition at line 148 of file itkLabelOverlayImageFilter.h.