VTK
|
computes 3D Euclidean DT More...
#include <vtkImageEuclideanDistance.h>
Public Types | |
typedef vtkImageDecomposeFilter | Superclass |
![]() | |
typedef vtkImageIterateFilter | Superclass |
![]() | |
typedef vtkThreadedImageAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkImageEuclideanDistance * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | IterativeRequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
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 () |
![]() | |
void | SetDimensionality (int dim) |
virtual int | GetDimensionality () |
void | PermuteIncrements (vtkIdType *increments, vtkIdType &inc0, vtkIdType &inc1, vtkIdType &inc2) |
void | PermuteExtent (int *extent, int &min0, int &max0, int &min1, int &max1, int &min2, int &max2) |
vtkImageDecomposeFilter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
vtkImageIterateFilter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | GetIteration () |
virtual int | GetNumberOfIterations () |
Static Public Member Functions | |
static vtkImageEuclideanDistance * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageEuclideanDistance * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkImageDecomposeFilter * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkImageIterateFilter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkImageEuclideanDistance () | |
~vtkImageEuclideanDistance () | |
virtual void | AllocateOutputScalars (vtkImageData *outData, int outExt[6], vtkInformation *outInfo) |
virtual int | IterativeRequestInformation (vtkInformation *in, vtkInformation *out) |
virtual int | IterativeRequestUpdateExtent (vtkInformation *in, vtkInformation *out) |
![]() | |
vtkImageDecomposeFilter () | |
~vtkImageDecomposeFilter () | |
![]() | |
vtkImageIterateFilter () | |
~vtkImageIterateFilter () | |
virtual int | RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual void | SetNumberOfIterations (int num) |
Protected Attributes | |
double | MaximumDistance |
int | Initialize |
int | ConsiderAnisotropy |
int | Algorithm |
![]() | |
int | Dimensionality |
![]() | |
int | NumberOfIterations |
int | Iteration |
vtkAlgorithm ** | IterationData |
vtkInformationVector * | InputVector |
vtkInformationVector * | OutputVector |
computes 3D Euclidean DT
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 56 of file vtkImageEuclideanDistance.h.
Definition at line 60 of file vtkImageEuclideanDistance.h.
|
protected |
|
inlineprotected |
Definition at line 116 of file vtkImageEuclideanDistance.h.
|
static |
|
static |
|
virtual |
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.
Reimplemented from vtkImageDecomposeFilter.
|
static |
|
protectedvirtual |
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.
Reimplemented from vtkImageDecomposeFilter.
vtkImageEuclideanDistance* vtkImageEuclideanDistance::NewInstance | ( | ) | const |
void vtkImageEuclideanDistance::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
int vtkImageEuclideanDistance::SplitExtent | ( | int | splitExt[6], |
int | startExt[6], | ||
int | num, | ||
int | total | ||
) |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
Used to define whether Spacing should be used in the computation of the distances
|
virtual |
Used to define whether Spacing should be used in the computation of the distances
|
virtual |
Used to define whether Spacing should be used in the computation of the distances
|
virtual |
Used to define whether Spacing should be used in the computation of the distances
|
virtual |
Any distance bigger than this->MaximumDistance will not ne computed but set to this->MaximumDistance instead.
|
virtual |
Any distance bigger than this->MaximumDistance will not ne computed but set to this->MaximumDistance instead.
|
virtual |
Selects a Euclidean DT algorithm. 1. Saito 2. Saito-cached More algorithms will be added later on.
|
virtual |
Selects a Euclidean DT algorithm. 1. Saito 2. Saito-cached More algorithms will be added later on.
|
inline |
Selects a Euclidean DT algorithm. 1. Saito 2. Saito-cached More algorithms will be added later on.
Definition at line 104 of file vtkImageEuclideanDistance.h.
|
inline |
Selects a Euclidean DT algorithm. 1. Saito 2. Saito-cached More algorithms will be added later on.
Definition at line 106 of file vtkImageEuclideanDistance.h.
|
virtual |
Reimplemented from vtkImageIterateFilter.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from vtkImageIterateFilter.
|
protectedvirtual |
Reimplemented from vtkImageIterateFilter.
|
protected |
Definition at line 118 of file vtkImageEuclideanDistance.h.
|
protected |
Definition at line 119 of file vtkImageEuclideanDistance.h.
|
protected |
Definition at line 120 of file vtkImageEuclideanDistance.h.
|
protected |
Definition at line 121 of file vtkImageEuclideanDistance.h.