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::ChangeRegionLabelMapFilter< TInputImage > Class Template Reference

#include <itkChangeRegionLabelMapFilter.h>

+ Inheritance diagram for itk::ChangeRegionLabelMapFilter< TInputImage >:
+ Collaboration diagram for itk::ChangeRegionLabelMapFilter< TInputImage >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef InputImageType::IndexType IndexType
typedef
InputImageType::IndexValueType 
IndexValueType
typedef
InputImageType::ConstPointer 
InputImageConstPointer
typedef InputImageType::PixelType InputImagePixelType
typedef InputImageType::Pointer InputImagePointer
typedef InputImageType::RegionType InputImageRegionType
typedef TInputImage InputImageType
typedef
InputImageType::LabelObjectType 
LabelObjectType
typedef
Superclass::OutputImagePixelType 
OutputImagePixelType
typedef
Superclass::OutputImagePointer 
OutputImagePointer
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
typedef Superclass::OutputImageType OutputImageType
typedef InputImageType::PixelType PixelType
typedef SmartPointer< SelfPointer
typedef InputImageType::RegionType RegionType
typedef ChangeRegionLabelMapFilter Self
typedef InputImageType::SizeType SizeType
typedef InPlaceLabelMapFilter
< TInputImage > 
Superclass
typedef TInputImage TOutputImage

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () 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
static const unsigned int ImageDimension = TOutputImage::ImageDimension

Protected Member Functions

void EnlargeOutputRequestedRegion (DataObject *)
void GenerateData ()
void GenerateInputRequestedRegion ()
virtual void GenerateOutputInformation ()
virtual void PrintSelf (std::ostream &os, Indent indent) const
virtual void ThreadedProcessLabelObject (LabelObjectType *labelObject)

Private Member Functions

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

Private Attributes

OutputImageRegionType m_Region
virtual void SetRegion (OutputImageRegionType _arg)
virtual const
OutputImageRegionType
GetRegion ()
 ChangeRegionLabelMapFilter ()
 ~ChangeRegionLabelMapFilter ()

Detailed Description

template<class TInputImage>
class itk::ChangeRegionLabelMapFilter< TInputImage >

Change the region of a label map.

Change the region of a label map. If the output can't contain some of the objects' lines they are truncated or removed. All objects fully outside the output region are removed.

This code was contributed in the Insight Journal paper: "Label object representation and manipulation with ITK" by Lehmann G. http://hdl.handle.net/1926/584 http://www.insight-journal.org/browse/publication/176

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

Definition at line 56 of file itkChangeRegionLabelMapFilter.h.


Member Typedef Documentation

template<class TInputImage >
typedef SmartPointer< const Self > itk::ChangeRegionLabelMapFilter< TInputImage >::ConstPointer
template<class TInputImage >
typedef InputImageType::IndexType itk::ChangeRegionLabelMapFilter< TInputImage >::IndexType
template<class TInputImage >
typedef InputImageType::IndexValueType itk::ChangeRegionLabelMapFilter< TInputImage >::IndexValueType

Definition at line 87 of file itkChangeRegionLabelMapFilter.h.

template<class TInputImage >
typedef InputImageType::ConstPointer itk::ChangeRegionLabelMapFilter< TInputImage >::InputImageConstPointer
template<class TInputImage >
typedef InputImageType::PixelType itk::ChangeRegionLabelMapFilter< TInputImage >::InputImagePixelType
template<class TInputImage >
typedef InputImageType::Pointer itk::ChangeRegionLabelMapFilter< TInputImage >::InputImagePointer
template<class TInputImage >
typedef InputImageType::RegionType itk::ChangeRegionLabelMapFilter< TInputImage >::InputImageRegionType
template<class TInputImage >
typedef TInputImage itk::ChangeRegionLabelMapFilter< TInputImage >::InputImageType
template<class TInputImage >
typedef InputImageType::LabelObjectType itk::ChangeRegionLabelMapFilter< TInputImage >::LabelObjectType
template<class TInputImage >
typedef Superclass::OutputImagePixelType itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImagePixelType
template<class TInputImage >
typedef Superclass::OutputImagePointer itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImagePointer
template<class TInputImage >
typedef Superclass::OutputImageRegionType itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImageRegionType
template<class TInputImage >
typedef Superclass::OutputImageType itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImageType
template<class TInputImage >
typedef InputImageType::PixelType itk::ChangeRegionLabelMapFilter< TInputImage >::PixelType
template<class TInputImage >
typedef SmartPointer< Self > itk::ChangeRegionLabelMapFilter< TInputImage >::Pointer
template<class TInputImage >
typedef InputImageType::RegionType itk::ChangeRegionLabelMapFilter< TInputImage >::RegionType
template<class TInputImage >
typedef ChangeRegionLabelMapFilter itk::ChangeRegionLabelMapFilter< TInputImage >::Self
template<class TInputImage >
typedef InputImageType::SizeType itk::ChangeRegionLabelMapFilter< TInputImage >::SizeType
template<class TInputImage >
typedef InPlaceLabelMapFilter< TInputImage > itk::ChangeRegionLabelMapFilter< TInputImage >::Superclass
template<class TInputImage >
typedef TInputImage itk::ChangeRegionLabelMapFilter< TInputImage >::TOutputImage

Constructor & Destructor Documentation

template<class TInputImage >
itk::ChangeRegionLabelMapFilter< TInputImage >::ChangeRegionLabelMapFilter ( ) [inline, protected]

The output region to use

Definition at line 103 of file itkChangeRegionLabelMapFilter.h.

template<class TInputImage >
itk::ChangeRegionLabelMapFilter< TInputImage >::~ChangeRegionLabelMapFilter ( ) [inline, protected]

The output region to use

Definition at line 104 of file itkChangeRegionLabelMapFilter.h.

template<class TInputImage >
itk::ChangeRegionLabelMapFilter< TInputImage >::ChangeRegionLabelMapFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage >
virtual::itk::LightObject::Pointer itk::ChangeRegionLabelMapFilter< TInputImage >::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::InPlaceLabelMapFilter< TInputImage >.

Reimplemented in itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, itk::RegionFromReferenceLabelMapFilter< TInputImage >, and itk::AutoCropLabelMapFilter< TInputImage >.

template<class TInputImage >
void itk::ChangeRegionLabelMapFilter< TInputImage >::EnlargeOutputRequestedRegion ( DataObject ) [protected, virtual]

LabelMapFilter will produce the entire output.

Reimplemented from itk::LabelMapFilter< TInputImage, TInputImage >.

template<class TInputImage >
void itk::ChangeRegionLabelMapFilter< TInputImage >::GenerateData ( void  ) [protected, virtual]

A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.

See also:
ThreadedGenerateData()

Reimplemented from itk::ImageSource< TInputImage >.

template<class TInputImage >
void itk::ChangeRegionLabelMapFilter< TInputImage >::GenerateInputRequestedRegion ( void  ) [protected, virtual]

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

Reimplemented from itk::LabelMapFilter< TInputImage, TInputImage >.

template<class TInputImage >
virtual void itk::ChangeRegionLabelMapFilter< TInputImage >::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::ProcessObject.

Reimplemented in itk::RegionFromReferenceLabelMapFilter< TInputImage >, itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, and itk::AutoCropLabelMapFilter< TInputImage >.

template<class TInputImage >
virtual const char* itk::ChangeRegionLabelMapFilter< TInputImage >::GetNameOfClass ( ) const [virtual]
template<class TInputImage >
virtual const OutputImageRegionType& itk::ChangeRegionLabelMapFilter< TInputImage >::GetRegion ( ) [virtual]

The output region to use

template<class TInputImage >
static Pointer itk::ChangeRegionLabelMapFilter< TInputImage >::New ( ) [static]
template<class TInputImage >
void itk::ChangeRegionLabelMapFilter< TInputImage >::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::InPlaceLabelMapFilter< TInputImage >.

Reimplemented in itk::RegionFromReferenceLabelMapFilter< TInputImage >, itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, and itk::AutoCropLabelMapFilter< TInputImage >.

template<class TInputImage >
virtual void itk::ChangeRegionLabelMapFilter< TInputImage >::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::InPlaceLabelMapFilter< TInputImage >.

Reimplemented in itk::RegionFromReferenceLabelMapFilter< TInputImage >, itk::CropLabelMapFilter< TInputImage >, itk::PadLabelMapFilter< TInputImage >, and itk::AutoCropLabelMapFilter< TInputImage >.

template<class TInputImage >
virtual void itk::ChangeRegionLabelMapFilter< TInputImage >::SetRegion ( OutputImageRegionType  _arg) [virtual]

The output region to use

template<class TInputImage >
virtual void itk::ChangeRegionLabelMapFilter< TInputImage >::ThreadedProcessLabelObject ( LabelObjectType labelObject) [protected, virtual]

Member Data Documentation

template<class TInputImage >
const unsigned int itk::ChangeRegionLabelMapFilter< TInputImage >::ImageDimension = TOutputImage::ImageDimension [static]
template<class TInputImage >
const unsigned int itk::ChangeRegionLabelMapFilter< TInputImage >::InputImageDimension = TInputImage::ImageDimension [static]
template<class TInputImage >
OutputImageRegionType itk::ChangeRegionLabelMapFilter< TInputImage >::m_Region [private]

Definition at line 123 of file itkChangeRegionLabelMapFilter.h.

template<class TInputImage >
const unsigned int itk::ChangeRegionLabelMapFilter< TInputImage >::OutputImageDimension = TOutputImage::ImageDimension [static]

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