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

Morphological opening by attributes. More...

#include <itkAreaOpeningImageFilter.h>

Inheritance diagram for itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >:
Collaboration diagram for itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >:

List of all members.

Public Types

typedef TAttribute AttributeType
typedef SmartPointer< const SelfConstPointer
typedef TInputImage::IndexType IndexType
typedef
TInputImage::InternalPixelType 
InputInternalPixelType
typedef TInputImage::PixelType InputPixelType
typedef TInputImage::OffsetType OffsetType
typedef
TOutputImage::InternalPixelType 
OutputInternalPixelType
typedef TOutputImage::PixelType OutputPixelType
typedef SmartPointer< SelfPointer
typedef AreaOpeningImageFilter Self
typedef TInputImage::SizeType SizeType
typedef
AttributeMorphologyBaseImageFilter
< TInputImage, TOutputImage,
TAttribute, std::greater
< typename
TInputImage::PixelType > > 
Superclass

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 ImageDimension = TOutputImage::ImageDimension

Protected Member Functions

void GenerateData ()
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~AreaOpeningImageFilter ()

Private Member Functions

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

Private Attributes

bool m_UseImageSpacing
virtual void SetUseImageSpacing (bool _arg)
virtual const bool & GetUseImageSpacing ()
virtual void UseImageSpacingOn ()
virtual void UseImageSpacingOff ()
 AreaOpeningImageFilter ()

Detailed Description

template<class TInputImage, class TOutputImage, class TAttribute = typename TInputImage::SpacingType::ValueType>
class itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >

Morphological opening by attributes.

This is the base class for morphology attribute operations. Attribute openings remove blobs according to criteria such as area. When applied to grayscale images it has the effect of trimming peaks based on area while leaving the rest of the image unchanged. It is possible to use attributes besides area, but no others are implemented yet. This filter uses some dodgy coding practices - most notably copying the image data to a linear buffer to allow direct implementation of the published algorithm. It should therefore be quite a good candidate to carry out tests of itk iterator performance with randomish access patterns.

This filter is implemented using the method of Wilkinson, "A comparison of algorithms for Connected set openings and Closings", A. Meijster and M. H. Wilkinson, PAMI, vol 24, no. 4, April 2002. Attempts at implementing the method from ISMM 2000 are also included, but operation appears incorrect. Check the ifdefs if you are interested.

This code was contributed in the Insight Journal paper

"Grayscale morphological attribute operations" by Beare R. http://hdl.handle.net/1926/1316 http://www.insight-journal.org/browse/publication/203

Author:
Richard Beare. Department of Medicine, Monash University, Melbourne, Australia.

Definition at line 60 of file itkAreaOpeningImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef TAttribute itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::AttributeType
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef SmartPointer< const Self > itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::ConstPointer
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef TInputImage::IndexType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::IndexType
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef TInputImage::InternalPixelType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::InputInternalPixelType
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef TInputImage::PixelType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::InputPixelType
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef TInputImage::OffsetType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::OffsetType
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef TOutputImage::InternalPixelType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::OutputInternalPixelType
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef TOutputImage::PixelType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::OutputPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.

Definition at line 78 of file itkAreaOpeningImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef SmartPointer< Self > itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::Pointer
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef AreaOpeningImageFilter itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::Self
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef TInputImage::SizeType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::SizeType
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
typedef AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< typename TInputImage::PixelType > > itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::Superclass

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::AreaOpeningImageFilter ( ) [inline, protected]

Set/Get whether the image spacing is used or not - defaults to true.

Definition at line 104 of file itkAreaOpeningImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
virtual itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::~AreaOpeningImageFilter ( ) [inline, protected, virtual]

Definition at line 110 of file itkAreaOpeningImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::AreaOpeningImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
virtual::itk::LightObject::Pointer itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::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::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
void itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::GenerateData ( void  ) [inline, protected, virtual]
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
virtual const char* itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::GetNameOfClass ( ) const [virtual]
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
virtual const bool& itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::GetUseImageSpacing ( ) [virtual]

Set/Get whether the image spacing is used or not - defaults to true.

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
static Pointer itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::New ( ) [static]
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
void itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::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 TAttribute = typename TInputImage::SpacingType::ValueType>
void itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [inline, 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::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.

Definition at line 131 of file itkAreaOpeningImageFilter.h.

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
virtual void itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::SetUseImageSpacing ( bool  _arg) [virtual]

Set/Get whether the image spacing is used or not - defaults to true.

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
virtual void itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::UseImageSpacingOff ( ) [virtual]

Set/Get whether the image spacing is used or not - defaults to true.

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
virtual void itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::UseImageSpacingOn ( ) [virtual]

Set/Get whether the image spacing is used or not - defaults to true.


Member Data Documentation

template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
const unsigned int itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::ImageDimension = TOutputImage::ImageDimension [static]
template<class TInputImage , class TOutputImage , class TAttribute = typename TInputImage::SpacingType::ValueType>
bool itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::m_UseImageSpacing [private]

Definition at line 142 of file itkAreaOpeningImageFilter.h.


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