Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage > Class Template Reference
[Image Feature Extraction Filters]

#include <itkDanielssonDistanceMapImageFilter.h>

Inheritance diagram for itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >:

Inheritance graph
[legend]
Collaboration diagram for itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef DanielssonDistanceMapImageFilter Self
typedef ImageToImageFilter<
TInputImage, TOutputImage > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TInputImage InputImageType
typedef TOutputImage OutputImageType
typedef InputImageType::RegionType RegionType
typedef RegionType::IndexType IndexType
typedef InputImageType::OffsetType OffsetType
typedef RegionType::SizeType SizeType
typedef Image< OffsetType,
itkGetStaticConstMacro(InputImageDimension) 
VectorImageType )
typedef InputImageType::ConstPointer InputImagePointer
typedef OutputImageType::Pointer OutputImagePointer
typedef VectorImageType::Pointer VectorImagePointer

Public Member Functions

virtual const char * GetClassName () const
 itkStaticConstMacro (InputImageDimension, unsigned int, InputImageType::ImageDimension)
virtual void SetSquaredDistance (bool _arg)
virtual const bool & GetSquaredDistance ()
virtual void SquaredDistanceOn ()
virtual void SquaredDistanceOff ()
virtual void SetInputIsBinary (bool _arg)
virtual const bool & GetInputIsBinary ()
virtual void InputIsBinaryOn ()
virtual void InputIsBinaryOff ()
OutputImageTypeGetVoronoiMap (void)
OutputImageTypeGetDistanceMap (void)
VectorImageTypeGetVectorDistanceMap (void)

Static Public Member Functions

Pointer New ()

Protected Member Functions

 DanielssonDistanceMapImageFilter ()
virtual ~DanielssonDistanceMapImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
void GenerateData ()
void PrepareData ()
void ComputeVoronoiMap ()
void UpdateLocalDistance (VectorImageType *, const IndexType &, const OffsetType &)

Detailed Description

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

This class is parametrized over the type of the input image and the type of the output image.

This filter computes the distance map of the input image as an approximation with pixel accuracy to the Euclidean distance.

The input is assumed to contain numeric codes defining objects. The filter will produce as output the following images:

This filter is N-dimensional and known to be efficient in computational time. The algorithm is the N-dimensional version of the 4SED algorithm given for two dimensions in:

Danielsson, Per-Erik. Euclidean Distance Mapping. Computer Graphics and Image Processing 14, 227-248 (1980).

Definition at line 59 of file itkDanielssonDistanceMapImageFilter.h.


Member Typedef Documentation

template<class TInputImage, class TOutputImage>
typedef SmartPointer<const Self> itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::ConstPointer
 

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

Definition at line 67 of file itkDanielssonDistanceMapImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef RegionType::IndexType itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::IndexType
 

Type for the index of the input image. Definition at line 86 of file itkDanielssonDistanceMapImageFilter.h.

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

Pointer Type for input image.

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

Definition at line 103 of file itkDanielssonDistanceMapImageFilter.h.

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

Type for input image.

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

Definition at line 76 of file itkDanielssonDistanceMapImageFilter.h.

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

Type for the index of the input image. Definition at line 89 of file itkDanielssonDistanceMapImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef OutputImageType::Pointer itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::OutputImagePointer
 

Pointer Type for the output image.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 106 of file itkDanielssonDistanceMapImageFilter.h.

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

Type for two of the three output images: the VoronoiMap and the DistanceMap.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 80 of file itkDanielssonDistanceMapImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef SmartPointer<Self> itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::Pointer
 

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

Definition at line 66 of file itkDanielssonDistanceMapImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef InputImageType::RegionType itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::RegionType
 

Type for the region of the input image. Definition at line 83 of file itkDanielssonDistanceMapImageFilter.h.

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

Standard class typedefs.

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

Definition at line 64 of file itkDanielssonDistanceMapImageFilter.h.

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

Type for the size of the input image. Definition at line 92 of file itkDanielssonDistanceMapImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef ImageToImageFilter<TInputImage,TOutputImage> itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::Superclass
 

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

Definition at line 65 of file itkDanielssonDistanceMapImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef VectorImageType::Pointer itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::VectorImagePointer
 

Pointer Type for the vector distance image. Definition at line 109 of file itkDanielssonDistanceMapImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef Image< OffsetType, itkGetStaticConstMacro(InputImageDimension) itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::VectorImageType)
 

Pointer Type for the vector distance image Definition at line 100 of file itkDanielssonDistanceMapImageFilter.h.


Constructor & Destructor Documentation

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

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

Definition at line 155 of file itkDanielssonDistanceMapImageFilter.h.


Member Function Documentation

template<class TInputImage, class TOutputImage>
void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::ComputeVoronoiMap  )  [protected]
 

Compute Voronoi Map.

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

Compute Danielsson distance map and Voronoi Map.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage, class TOutputImage>
virtual const char* itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

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

template<class TInputImage, class TOutputImage>
OutputImageType* itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::GetDistanceMap void   ) 
 

Get Distance map image. The distance map is shown as a gray value image depending on the pixel type of the output image. Regarding the source image, background should be dark (gray value = 0) and object should have a gray value larger than 0. The minimal distance is calculated on the object frontier, and the output image gives for each pixel its minimal distance from the object (if there is more than one object the closest object is considered).

template<class TInputImage, class TOutputImage>
virtual const bool& itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::GetInputIsBinary  )  [virtual]
 

Get if the input is binary. See SetInputIsBinary().

template<class TInputImage, class TOutputImage>
virtual const bool& itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::GetSquaredDistance  )  [virtual]
 

Get the distance squared.

template<class TInputImage, class TOutputImage>
VectorImageType* itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::GetVectorDistanceMap void   ) 
 

Get vector field of distances.

template<class TInputImage, class TOutputImage>
OutputImageType* itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::GetVoronoiMap void   ) 
 

Get Voronoi Map This map shows for each pixel what object is closest to it. Each object should be labeled by a number (larger than 0), so the map has a value for each pixel corresponding to the label of the closest object.

template<class TInputImage, class TOutputImage>
virtual void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::InputIsBinaryOff  )  [virtual]
 

template<class TInputImage, class TOutputImage>
virtual void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::InputIsBinaryOn  )  [virtual]
 

Set On/Off if the input is binary. See SetInputIsBinary().

template<class TInputImage, class TOutputImage>
itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro InputImageDimension  ,
unsigned  int,
InputImageType::ImageDimension 
 

The dimension of the input image.

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

Method for creation through the object factory

Reimplemented from itk::Object.

template<class TInputImage, class TOutputImage>
void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::PrepareData  )  [protected]
 

Prepare data.

template<class TInputImage, class TOutputImage>
void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::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>
virtual void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::SetInputIsBinary bool  _arg  )  [virtual]
 

Set if the input is binary. If this variable is set, each nonzero pixel in the input image will be given a unique numeric code to be used by the Voronoi partition. If the image is binary but you are not interested in the Voronoi regions of the different nonzero pixels, then you need not set this.

template<class TInputImage, class TOutputImage>
virtual void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::SetSquaredDistance bool  _arg  )  [virtual]
 

Set if the distance should be squared.

template<class TInputImage, class TOutputImage>
virtual void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::SquaredDistanceOff  )  [virtual]
 

template<class TInputImage, class TOutputImage>
virtual void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::SquaredDistanceOn  )  [virtual]
 

Set On/Off if the distance is squared.

template<class TInputImage, class TOutputImage>
void itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::UpdateLocalDistance VectorImageType ,
const IndexType ,
const OffsetType
[protected]
 

Update distance map locally. Used by GenerateData().


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 02:53:23 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000