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

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

#include <itkSignedDanielssonDistanceMapImageFilter.h>

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

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef SignedDanielssonDistanceMapImageFilter 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 InputImageType::PixelType PixelType
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 * GetNameOfClass () const
 itkStaticConstMacro (InputImageDimension, unsigned int, InputImageType::ImageDimension)
virtual void SetSquaredDistance (bool _arg)
virtual const bool & GetSquaredDistance ()
virtual void SquaredDistanceOn ()
virtual void SquaredDistanceOff ()
virtual void SetUseImageSpacing (bool _arg)
virtual const bool & GetUseImageSpacing ()
virtual void UseImageSpacingOn ()
virtual void UseImageSpacingOff ()
virtual void SetInsideIsPositive (bool _arg)
virtual const bool & GetInsideIsPositive ()
virtual void InsideIsPositiveOn ()
virtual void InsideIsPositiveOff ()
OutputImageTypeGetVoronoiMap (void)
OutputImageTypeGetDistanceMap (void)
VectorImageTypeGetVectorDistanceMap (void)

Static Public Member Functions

Pointer New ()

Protected Member Functions

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

Detailed Description

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

For purposes of evaluating the signed distance map, the input is assumed to be binary composed of pixels with value 0 and non-zero.

The inside is considered as having negative distances. Outside is treated as having positive distances. To change the convention, use the InsideIsPositive(bool) function.

As a convention, the distance is evaluated from the boundary of the ON pixels.

The filter returns

This filter internally uses the DanielssonDistanceMap filter. This filter is N-dimensional.

See also:
itkDanielssonDistanceMapImageFilter

Definition at line 89 of file itkSignedDanielssonDistanceMapImageFilter.h.


Member Typedef Documentation

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

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

Definition at line 97 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Type for the index of the input image.

Definition at line 116 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Pointer Type for input image.

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

Definition at line 136 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Type for input image.

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

Definition at line 106 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Type for the index of the input image.

Definition at line 119 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Pointer Type for the output image.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 139 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

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

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 110 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Type for the pixel type of the input image.

Definition at line 122 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

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

Definition at line 96 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Type for the region of the input image.

Definition at line 113 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Standard class typedefs.

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

Definition at line 94 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Type for the size of the input image.

Definition at line 125 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

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

Definition at line 95 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Pointer Type for the vector distance image.

Definition at line 142 of file itkSignedDanielssonDistanceMapImageFilter.h.

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

Pointer Type for the vector distance image

Definition at line 133 of file itkSignedDanielssonDistanceMapImageFilter.h.


Constructor & Destructor Documentation

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

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

Definition at line 197 of file itkSignedDanielssonDistanceMapImageFilter.h.


Member Function Documentation

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

Compute Danielsson distance map and Voronoi Map.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage, class TOutputImage>
OutputImageType* itk::SignedDanielssonDistanceMapImageFilter< 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::SignedDanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::GetInsideIsPositive  )  [virtual]
 

Get if the inside represents positive values in the signed distance map. See GetInsideIsPositive()

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

Run-time type information (and related methods).

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

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

Get the distance squared.

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

Get whether spacing is used.

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

Get vector field of distances.

template<class TInputImage, class TOutputImage>
OutputImageType* itk::SignedDanielssonDistanceMapImageFilter< 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::SignedDanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::InsideIsPositiveOff  )  [virtual]
 

template<class TInputImage, class TOutputImage>
virtual void itk::SignedDanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::InsideIsPositiveOn  )  [virtual]
 

Set if the inside represents positive values in the signed distance map. By convention ON pixels are treated as inside pixels. Default is true.

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

The dimension of the input image.

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

Method for creation through the object factory

Reimplemented from itk::Object.

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

Set if the inside represents positive values in the signed distance map. By convention ON pixels are treated as inside pixels.

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

Set if the distance should be squared.

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

Set if image spacing should be used in computing distances.

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

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

Set On/Off if the distance is squared.

template<class TInputImage, class TOutputImage>
virtual void itk::SignedDanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::UseImageSpacingOff  )  [virtual]
 

template<class TInputImage, class TOutputImage>
virtual void itk::SignedDanielssonDistanceMapImageFilter< TInputImage, TOutputImage >::UseImageSpacingOn  )  [virtual]
 

Set On/Off whether spacing is used.


The documentation for this class was generated from the following file:
Generated at Thu May 25 02:20:19 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000