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

This class compute the signed (positive and negative) chamfer distance in a narrow band. More...

#include <itkFastChamferDistanceImageFilter.h>

Inheritance diagram for itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >:
Collaboration diagram for itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >:

List of all members.

Public Types

typedef BandNode< IndexType,
PixelType
BandNodeType
typedef SmartPointer< const SelfConstPointer
typedef RegionType::IndexType IndexType
typedef
InputImageType::ConstPointer 
InputImagePointer
typedef TInputImage InputImageType
typedef NarrowBandType::Pointer NarrowBandPointer
typedef NarrowBand< BandNodeTypeNarrowBandType
typedef InputImageType::OffsetType OffsetType
typedef TOutputImage OutputImageType
typedef InputImageType::PixelType PixelType
typedef SmartPointer< SelfPointer
typedef InputImageType::RegionType RegionType
typedef
FastChamferDistanceImageFilter 
Self
typedef RegionType::SizeType SizeType
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
typedef FixedArray< float,
ImageDimension
WeightsType

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
NarrowBandPointer GetNarrowBand () const
RegionType GetRegionToProcess () const
void SetNarrowBand (NarrowBandType *ptr)
void SetRegionToProcess (const RegionType &r)
 typedef (Concept::Convertible< PixelType, float >) PixelTypeConvertibleToFloatCheck
 typedef (Concept::Convertible< float, PixelType >) FloatConvertibleToPixelTypeCheck
 typedef (Concept::SameType< PixelType, typename TOutputImage::PixelType >) SameTypeCheck
 typedef (Concept::SameDimension< ImageDimension, OutputImageDimension >) SameDimensionCheck
 typedef (Concept::GreaterThanComparable< float, PixelType >) FloatGreaterThanPixelTypeCheck
 typedef (Concept::AdditiveOperators< PixelType, float, float >) PixelTypeFloatAdditiveOperatorsCheck
 typedef (Concept::LessThanComparable< float, PixelType >) FloatLessThanPixelTypeCheck
 typedef (Concept::GreaterThanComparable< PixelType, float >) PixelTypeGreaterThanFloatCheck
 typedef (Concept::LessThanComparable< PixelType, float >) PixelTypeLessThanFloatCheck
virtual void SetWeights (WeightsType _arg)
virtual const WeightsTypeGetWeights ()
virtual void SetMaximumDistance (float _arg)
virtual float GetMaximumDistance () const

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int ImageDimension = InputImageType::ImageDimension
static const unsigned int OutputImageDimension = OutputImageType::ImageDimension

Protected Member Functions

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

Private Member Functions

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

Private Attributes

float m_MaximumDistance
NarrowBandPointer m_NarrowBand
RegionType m_RegionToProcess
WeightsType m_Weights

Detailed Description

template<class TInputImage, class TOutputImage>
class itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >

This class compute the signed (positive and negative) chamfer distance in a narrow band.

OVERVIEW
This filter computes a Signed Chamfer Distance Map of the input image specialy designed to work within the Level Set framework, in the Narrow Band Reinitialization (generally applied after IsoContourDistanceImageFilter ). It can however be used for other purposes.

The input is assumed to contain voxels with values higher than the Maximal Computed Distance, or values between -1 and 1 for voxels close to the 0-isosurface from which we compute the distance.

This filter is N-dimensional.

REFERENCES
Fast and Accurate Redistancing for Level Set Methods `Krissian K. and Westin C.F.', EUROCAST NeuroImaging Workshop Las Palmas Spain, Ninth International Conference on Computer Aided Systems Theory , pages 48-51, Feb 2003.

Definition at line 55 of file itkFastChamferDistanceImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage >
typedef BandNode< IndexType, PixelType > itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::BandNodeType

NarrowBand container

Definition at line 103 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef SmartPointer< const Self > itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::ConstPointer
template<class TInputImage , class TOutputImage >
typedef RegionType::IndexType itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::IndexType

Type for the index of the input image.

Definition at line 84 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef InputImageType::ConstPointer itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::InputImagePointer

Pointer Type for input image.

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

Definition at line 100 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TInputImage itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::InputImageType

Type for input image.

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

Definition at line 69 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef NarrowBandType::Pointer itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::NarrowBandPointer

Definition at line 105 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef NarrowBand< BandNodeType > itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::NarrowBandType

Definition at line 104 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef InputImageType::OffsetType itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::OffsetType

Type for the index of the input image.

Definition at line 87 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TOutputImage itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::OutputImageType

Type for input image.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 75 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef InputImageType::PixelType itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::PixelType

Type for the region of the input image.

Definition at line 81 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef SmartPointer< Self > itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::Pointer
template<class TInputImage , class TOutputImage >
typedef InputImageType::RegionType itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::RegionType

Type for the region of the input image.

Definition at line 78 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef FastChamferDistanceImageFilter itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::Self

Standard class typedefs.

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

Definition at line 60 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef RegionType::SizeType itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::SizeType

Type for the size of the input image.

Definition at line 90 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::Superclass
template<class TInputImage , class TOutputImage >
typedef FixedArray< float, ImageDimension > itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::WeightsType

Definition at line 107 of file itkFastChamferDistanceImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::FastChamferDistanceImageFilter ( ) [protected]

End concept checking

template<class TInputImage , class TOutputImage >
virtual itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::~FastChamferDistanceImageFilter ( ) [inline, protected, virtual]

End concept checking

Definition at line 153 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::FastChamferDistanceImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage , class TOutputImage >
virtual::itk::LightObject::Pointer itk::FastChamferDistanceImageFilter< TInputImage, 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::Object.

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

Compute a Signed Chamfer Distance Map up to the specified maximal distance

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage >
void itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::GenerateDataND ( ) [protected]

Compute a Signed Chamfer Distance Map up to the specified maximal distance in n dimensions

template<class TInputImage , class TOutputImage >
virtual float itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::GetMaximumDistance ( ) const [virtual]

Maximal computed distance

template<class TInputImage , class TOutputImage >
virtual const char* itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

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

template<class TInputImage , class TOutputImage >
NarrowBandPointer itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::GetNarrowBand ( ) const
template<class TInputImage , class TOutputImage >
RegionType itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::GetRegionToProcess ( ) const
template<class TInputImage , class TOutputImage >
virtual const WeightsType& itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::GetWeights ( ) [virtual]

coefficients of the Chamfer distance for each kind of neighbor.

template<class TInputImage , class TOutputImage >
static Pointer itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::New ( ) [static]

Method for creation through the object factory

Reimplemented from itk::Object.

template<class TInputImage , class TOutputImage >
void itk::FastChamferDistanceImageFilter< TInputImage, 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::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
void itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

End concept checking

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

template<class TInputImage , class TOutputImage >
virtual void itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::SetMaximumDistance ( float  _arg) [virtual]

Maximal computed distance

template<class TInputImage , class TOutputImage >
void itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::SetNarrowBand ( NarrowBandType ptr)
template<class TInputImage , class TOutputImage >
void itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::SetRegionToProcess ( const RegionType r)
template<class TInputImage , class TOutputImage >
virtual void itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::SetWeights ( WeightsType  _arg) [virtual]

coefficients of the Chamfer distance for each kind of neighbor.

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::typedef ( Concept::AdditiveOperators< PixelType, float, float >  )

This class requires PixelTypeFloatAdditiveOperatorsCheck in the form of ( Concept::AdditiveOperators< PixelType, float, float > )

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::typedef ( Concept::GreaterThanComparable< float, PixelType )

This class requires FloatGreaterThanPixelTypeCheck in the form of ( Concept::GreaterThanComparable< float, PixelType > )

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::typedef ( Concept::Convertible< PixelType, float >  )

This class requires PixelTypeConvertibleToFloatCheck in the form of ( Concept::Convertible< PixelType, float > )

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::typedef ( Concept::SameDimension< ImageDimension, OutputImageDimension )

Begin concept checking This class requires SameDimensionCheck in the form of ( Concept::SameDimension< ImageDimension, OutputImageDimension > )

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::typedef ( Concept::Convertible< float, PixelType )

This class requires FloatConvertibleToPixelTypeCheck in the form of ( Concept::Convertible< float, PixelType > )

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::typedef ( Concept::LessThanComparable< PixelType, float >  )

This class requires PixelTypeLessThanFloatCheck in the form of ( Concept::LessThanComparable< PixelType, float > )

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::typedef ( Concept::GreaterThanComparable< PixelType, float >  )

This class requires PixelTypeGreaterThanFloatCheck in the form of ( Concept::GreaterThanComparable< PixelType, float > )

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::typedef ( Concept::SameType< PixelType, typename TOutputImage::PixelType >  )

This class requires SameTypeCheck in the form of ( Concept::SameType< PixelType, typename TOutputImage::PixelType > )

template<class TInputImage , class TOutputImage >
itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::typedef ( Concept::LessThanComparable< float, PixelType )

This class requires FloatLessThanPixelTypeCheck in the form of ( Concept::LessThanComparable< float, PixelType > )


Member Data Documentation

template<class TInputImage , class TOutputImage >
const unsigned int itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::ImageDimension = InputImageType::ImageDimension [static]

The dimension of the input and output images.

Definition at line 94 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
float itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::m_MaximumDistance [private]

Definition at line 169 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
NarrowBandPointer itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::m_NarrowBand [private]

Definition at line 174 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
RegionType itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::m_RegionToProcess [private]

Region in the image to process.

Definition at line 177 of file itkFastChamferDistanceImageFilter.h.

template<class TInputImage , class TOutputImage >
WeightsType itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::m_Weights [private]

coefficients of the Chamfer distance for each kind of neighbor.

Definition at line 172 of file itkFastChamferDistanceImageFilter.h.

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

The dimension of the input and output images.

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

Definition at line 96 of file itkFastChamferDistanceImageFilter.h.


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