#include <vtkImageEuclideanDistance.h>
Inheritance diagram for vtkImageEuclideanDistance:
vtkImageEuclideanDistance implements the Euclidean DT using Saito's algorithm. The distance map produced contains the square of the Euclidean distance values.
The algorithm has a o(n^(D+1)) complexity over nxnx...xn images in D dimensions. It is very efficient on relatively small images. Cuisenaire's algorithms should be used instead if n >> 500. These are not implemented yet.
For the special case of images where the slice-size is a multiple of 2^N with a large N (typically for 256x256 slices), Saito's algorithm encounters a lot of cache conflicts during the 3rd iteration which can slow it very significantly. In that case, one should use ::SetAlgorithmToSaitoCached() instead for better performance.
References:
T. Saito and J.I. Toriwaki. New algorithms for Euclidean distance transformations of an n-dimensional digitised picture with applications. Pattern Recognition, 27(11). pp. 1551--1565, 1994.
O. Cuisenaire. Distance Transformation: fast algorithms and applications to medical image processing. PhD Thesis, Universite catholique de Louvain, October 1999. http://ltswww.epfl.ch/~cuisenai/papers/oc_thesis.pdf
Definition at line 67 of file vtkImageEuclideanDistance.h.
Public Types | |
typedef vtkImageDecomposeFilter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | IterativeExecuteData (vtkImageData *in, vtkImageData *out) |
int | SplitExtent (int splitExt[6], int startExt[6], int num, int total) |
virtual void | SetInitialize (int) |
virtual int | GetInitialize () |
virtual void | InitializeOn () |
virtual void | InitializeOff () |
virtual void | SetConsiderAnisotropy (int) |
virtual int | GetConsiderAnisotropy () |
virtual void | ConsiderAnisotropyOn () |
virtual void | ConsiderAnisotropyOff () |
virtual void | SetMaximumDistance (double) |
virtual double | GetMaximumDistance () |
virtual void | SetAlgorithm (int) |
virtual int | GetAlgorithm () |
void | SetAlgorithmToSaito () |
void | SetAlgorithmToSaitoCached () |
Static Public Member Functions | |
vtkImageEuclideanDistance * | New () |
int | IsTypeOf (const char *type) |
vtkImageEuclideanDistance * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkImageEuclideanDistance () | |
~vtkImageEuclideanDistance () | |
virtual void | AllocateOutputScalars (vtkImageData *outData) |
void | ExecuteInformation (vtkImageData *input, vtkImageData *output) |
void | ExecuteInformation () |
void | ComputeInputUpdateExtent (int inExt[6], int outExt[6]) |
Protected Attributes | |
double | MaximumDistance |
int | Initialize |
int | ConsiderAnisotropy |
int | Algorithm |
|
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3. Reimplemented from vtkImageDecomposeFilter. Definition at line 71 of file vtkImageEuclideanDistance.h. |
|
|
|
Definition at line 125 of file vtkImageEuclideanDistance.h. |
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkAlgorithm. |
|
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3. Reimplemented from vtkImageDecomposeFilter. |
|
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3. Reimplemented from vtkImageDecomposeFilter. |
|
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3. Reimplemented from vtkImageDecomposeFilter. |
|
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3. Reimplemented from vtkImageDecomposeFilter. |
|
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3. Reimplemented from vtkImageDecomposeFilter. |
|
Used internally for streaming and threads. Splits output update extent into num pieces. This method needs to be called num times. Results must not overlap for consistent starting extent. Subclass can override this method. This method returns the number of peices resulting from a successful split. This can be from 1 to "total". If 1 is returned, the extent cannot be split. Reimplemented from vtkImageToImageFilter. |
|
Used to set all non-zero voxels to MaximumDistance before starting the distance transformation. Setting Initialize off keeps the current value in the input image as starting point. This allows to superimpose several distance maps. |
|
Used to set all non-zero voxels to MaximumDistance before starting the distance transformation. Setting Initialize off keeps the current value in the input image as starting point. This allows to superimpose several distance maps. |
|
Used to set all non-zero voxels to MaximumDistance before starting the distance transformation. Setting Initialize off keeps the current value in the input image as starting point. This allows to superimpose several distance maps. |
|
Used to set all non-zero voxels to MaximumDistance before starting the distance transformation. Setting Initialize off keeps the current value in the input image as starting point. This allows to superimpose several distance maps. |
|
Used to define whether Spacing should be used in the computation of the distances |
|
Used to define whether Spacing should be used in the computation of the distances |
|
Used to define whether Spacing should be used in the computation of the distances |
|
Used to define whether Spacing should be used in the computation of the distances |
|
Any distance bigger than this->MaximumDistance will not ne computed but set to this->MaximumDistance instead. |
|
Any distance bigger than this->MaximumDistance will not ne computed but set to this->MaximumDistance instead. |
|
Selects a Euclidean DT algorithm. 1. Saito 2. Saito-cached More algorithms will be added later on. |
|
Selects a Euclidean DT algorithm. 1. Saito 2. Saito-cached More algorithms will be added later on. |
|
Selects a Euclidean DT algorithm. 1. Saito 2. Saito-cached More algorithms will be added later on. Definition at line 115 of file vtkImageEuclideanDistance.h. References VTK_EDT_SAITO. |
|
Selects a Euclidean DT algorithm. 1. Saito 2. Saito-cached More algorithms will be added later on. Definition at line 117 of file vtkImageEuclideanDistance.h. References VTK_EDT_SAITO_CACHED. |
|
Implements vtkImageIterateFilter. |
|
Reimplemented from vtkImageIterateFilter. |
|
Reimplemented from vtkImageIterateFilter. |
|
Reimplemented from vtkImageIterateFilter. Definition at line 136 of file vtkImageEuclideanDistance.h. References vtkImageIterateFilter::ExecuteInformation(). |
|
Reimplemented from vtkImageIterateFilter. |
|
Definition at line 127 of file vtkImageEuclideanDistance.h. |
|
Definition at line 128 of file vtkImageEuclideanDistance.h. |
|
Definition at line 129 of file vtkImageEuclideanDistance.h. |
|
Definition at line 130 of file vtkImageEuclideanDistance.h. |