ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor > Class Template Reference

#include <itkLabelMapToAttributeImageFilter.h>

+ Inheritance diagram for itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >:
+ Collaboration diagram for itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >:

List of all members.

Public Types

typedef TAttributeAccessor AttributeAccessorType
typedef
AttributeAccessorType::AttributeValueType 
AttributeValueType
typedef SmartPointer< const SelfConstPointer
typedef OutputImageType::IndexType IndexType
typedef
InputImageType::ConstPointer 
InputImageConstPointer
typedef InputImageType::PixelType InputImagePixelType
typedef InputImageType::Pointer InputImagePointer
typedef InputImageType::RegionType InputImageRegionType
typedef TInputImage InputImageType
typedef
OutputImageType::ConstPointer 
OutputImageConstPointer
typedef OutputImageType::PixelType OutputImagePixelType
typedef OutputImageType::Pointer OutputImagePointer
typedef OutputImageType::RegionType OutputImageRegionType
typedef TOutputImage OutputImageType
typedef SmartPointer< SelfPointer
typedef
LabelMapToAttributeImageFilter 
Self
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
virtual void SetBackgroundValue (OutputImagePixelType _arg)
virtual OutputImagePixelType GetBackgroundValue () const

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int InputImageDimension = TInputImage::ImageDimension
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension

Protected Member Functions

void EnlargeOutputRequestedRegion (DataObject *)
void GenerateData ()
void GenerateInputRequestedRegion ()
 LabelMapToAttributeImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
 ~LabelMapToAttributeImageFilter ()

Private Member Functions

 LabelMapToAttributeImageFilter (const Self &)
void operator= (const Self &)

Private Attributes

OutputImagePixelType m_BackgroundValue

Detailed Description

template<class TInputImage, class TOutputImage, class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
class itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >

Convert a LabelMap to a labeled image.

LabelMapToAttributeImageFilter converts a LabelMap to an Image where all the pixels get the attribute value of the label object they belong.

Author:
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.

This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176

See also:
LabelMapToBinaryImageFilter, LabelMapMaskImageFilter

Definition at line 44 of file itkLabelMapToAttributeImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef TAttributeAccessor itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::AttributeAccessorType

Definition at line 67 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef AttributeAccessorType::AttributeValueType itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::AttributeValueType

Definition at line 68 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef SmartPointer<const Self> itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::ConstPointer
template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef OutputImageType::IndexType itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::IndexType

Definition at line 65 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef InputImageType::ConstPointer itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::InputImageConstPointer
template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef InputImageType::PixelType itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::InputImagePixelType
template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef InputImageType::Pointer itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::InputImagePointer
template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef InputImageType::RegionType itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::InputImageRegionType
template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef TInputImage itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::InputImageType

Some convenient typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 55 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef OutputImageType::ConstPointer itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::OutputImageConstPointer

Definition at line 62 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef OutputImageType::PixelType itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::OutputImagePixelType
template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef OutputImageType::Pointer itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::OutputImagePointer

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 61 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef OutputImageType::RegionType itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::OutputImageRegionType

Superclass typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 63 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef TOutputImage itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::OutputImageType

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 56 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef SmartPointer<Self> itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::Pointer
template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef LabelMapToAttributeImageFilter itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::Self

Standard class typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 49 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
typedef ImageToImageFilter<TInputImage, TOutputImage> itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::Superclass

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::LabelMapToAttributeImageFilter ( ) [protected]
template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::~LabelMapToAttributeImageFilter ( ) [inline, protected]

Definition at line 95 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::LabelMapToAttributeImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
virtual::itk::LightObject::Pointer itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::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::Object.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
void itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::EnlargeOutputRequestedRegion ( DataObject ) [protected, virtual]

LabelMapToAttributeImageFilter will produce the entire output.

Reimplemented from itk::ProcessObject.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
void itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::GenerateData ( ) [protected, virtual]

Single-threaded version of GenerateData. This filter delegates to GrayscaleGeodesicErodeImageFilter.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
void itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::GenerateInputRequestedRegion ( ) [protected, virtual]

LabelMapToAttributeImageFilter needs the entire input be available. Thus, it needs to provide an implementation of GenerateInputRequestedRegion().

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
virtual OutputImagePixelType itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::GetBackgroundValue ( ) const [virtual]

Set/Get the value used as "background" in the output image, if the input LabelMap use a background. Defaults to NumericTraits<PixelType>::NonpositiveMin().

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
virtual const char* itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::GetNameOfClass ( ) const [virtual]

Runtime information support.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
static Pointer itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::New ( ) [static]

Standard New method.

Reimplemented from itk::Object.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
void itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::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::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
void itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
virtual void itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::SetBackgroundValue ( OutputImagePixelType  _arg) [virtual]

Set/Get the value used as "background" in the output image, if the input LabelMap use a background. Defaults to NumericTraits<PixelType>::NonpositiveMin().


Member Data Documentation

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
const unsigned int itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::InputImageDimension = TInputImage::ImageDimension [static]

ImageDimension constants

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 72 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
OutputImagePixelType itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::m_BackgroundValue [private]

Definition at line 115 of file itkLabelMapToAttributeImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributeLabelObjectAccessor< typename TInputImage::LabelObjectType >>
const unsigned int itk::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::OutputImageDimension = TOutputImage::ImageDimension [static]

ImageDimension constants

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 74 of file itkLabelMapToAttributeImageFilter.h.


The documentation for this class was generated from the following file: