#include <itkDanielssonDistanceMapImageFilter.h>
Inheritance diagram for itk::DanielssonDistanceMapImageFilter< TInputImage, TOutputImage >:
Public Types | |
typedef DanielssonDistanceMapImageFilter | Self |
typedef ImageToImageFilter< TInputImage, TOutputImage > | Superclass |
typedef SmartPointer< Self > | Pointer |
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 * | 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 | SetInputIsBinary (bool _arg) |
virtual const bool & | GetInputIsBinary () |
virtual void | InputIsBinaryOn () |
virtual void | InputIsBinaryOff () |
virtual void | SetUseImageSpacing (bool _arg) |
virtual const bool & | GetUseImageSpacing () |
virtual void | UseImageSpacingOn () |
virtual void | UseImageSpacingOff () |
OutputImageType * | GetVoronoiMap (void) |
OutputImageType * | GetDistanceMap (void) |
VectorImageType * | GetVectorDistanceMap (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 &) |
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.
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 67 of file itkDanielssonDistanceMapImageFilter.h. |
|
Type for the index of the input image. Definition at line 86 of file itkDanielssonDistanceMapImageFilter.h. |
|
Pointer Type for input image. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 103 of file itkDanielssonDistanceMapImageFilter.h. |
|
Type for input image. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 76 of file itkDanielssonDistanceMapImageFilter.h. |
|
Type for the index of the input image. Definition at line 89 of file itkDanielssonDistanceMapImageFilter.h. |
|
Pointer Type for the output image. Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 106 of file itkDanielssonDistanceMapImageFilter.h. |
|
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. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 66 of file itkDanielssonDistanceMapImageFilter.h. |
|
Type for the region of the input image. Definition at line 83 of file itkDanielssonDistanceMapImageFilter.h. |
|
Standard class typedefs. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 64 of file itkDanielssonDistanceMapImageFilter.h. |
|
Type for the size of the input image. Definition at line 92 of file itkDanielssonDistanceMapImageFilter.h. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 65 of file itkDanielssonDistanceMapImageFilter.h. |
|
Pointer Type for the vector distance image. Definition at line 109 of file itkDanielssonDistanceMapImageFilter.h. |
|
Pointer Type for the vector distance image Definition at line 100 of file itkDanielssonDistanceMapImageFilter.h. |
|
|
|
Definition at line 164 of file itkDanielssonDistanceMapImageFilter.h. |
|
Compute Voronoi Map. |
|
Compute Danielsson distance map and Voronoi Map. Reimplemented from itk::ImageSource< TOutputImage >. |
|
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). |
|
Get if the input is binary. See SetInputIsBinary(). |
|
Run-time type information (and related methods). Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. |
|
Get the distance squared. |
|
Get whether spacing is used. |
|
Get vector field of distances. |
|
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. |
|
|
|
Set On/Off if the input is binary. See SetInputIsBinary(). |
|
The dimension of the input image. |
|
Method for creation through the object factory Reimplemented from itk::Object. |
|
Prepare data. |
|
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 >. |
|
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. |
|
Set if the distance should be squared. |
|
Set if image spacing should be used in computing distances. |
|
|
|
Set On/Off if the distance is squared. |
|
Update distance map locally. Used by GenerateData(). |
|
|
|
Set On/Off whether spacing is used. |