VTK
|
1,2 or 3D distance map. More...
#include <vtkImageCityBlockDistance.h>
Public Types | |
typedef vtkImageDecomposeFilter | Superclass |
![]() | |
typedef vtkImageIterateFilter | Superclass |
![]() | |
typedef vtkThreadedImageAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkImageCityBlockDistance * | NewInstance () const |
![]() | |
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 vtkImageCityBlockDistance * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageCityBlockDistance * | 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 |
vtkImageCityBlockDistance () | |
~vtkImageCityBlockDistance () | |
virtual int | IterativeRequestUpdateExtent (vtkInformation *in, vtkInformation *out) |
virtual int | IterativeRequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | AllocateOutputScalars (vtkImageData *outData, int *updateExtent, int *wholeExtent, vtkInformation *outInfo) |
![]() | |
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 int | IterativeRequestInformation (vtkInformation *in, vtkInformation *out) |
virtual void | SetNumberOfIterations (int num) |
Additional Inherited Members | |
![]() | |
int | Dimensionality |
![]() | |
int | NumberOfIterations |
int | Iteration |
vtkAlgorithm ** | IterationData |
vtkInformationVector * | InputVector |
vtkInformationVector * | OutputVector |
1,2 or 3D distance map.
vtkImageCityBlockDistance creates a distance map using the city block (Manhatten) distance measure. The input is a mask. Zero values are considered boundaries. The output pixel is the minimum of the input pixel and the distance to a boundary (or neighbor value + 1 unit). distance values are calculated in pixels. The filter works by taking 6 passes (for 3d distance map): 2 along each axis (forward and backward). Each pass keeps a running minimum distance. For some reason, I preserve the sign if the distance. If the input mask is initially negative, the output distances will be negative. Distances maps can have inside (negative regions) and outsides (positive regions).
Definition at line 41 of file vtkImageCityBlockDistance.h.
Definition at line 45 of file vtkImageCityBlockDistance.h.
|
protected |
|
inlineprotected |
Definition at line 49 of file vtkImageCityBlockDistance.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.
vtkImageCityBlockDistance* vtkImageCityBlockDistance::NewInstance | ( | ) | const |
|
protectedvirtual |
Reimplemented from vtkImageIterateFilter.
|
protectedvirtual |
Reimplemented from vtkImageIterateFilter.
|
protected |