#include <vtkImageCityBlockDistance.h>
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 40 of file vtkImageCityBlockDistance.h.
Public Types | |
typedef vtkImageDecomposeFilter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
Static Public Member Functions | |
static vtkImageCityBlockDistance * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageCityBlockDistance * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkImageCityBlockDistance () | |
~vtkImageCityBlockDistance () | |
virtual int | IterativeRequestUpdateExtent (vtkInformation *in, vtkInformation *out) |
virtual int | IterativeRequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | AllocateOutputScalars (vtkImageData *outData, int *updateExtent, int *wholeExtent) |
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.
Reimplemented from vtkImageDecomposeFilter.
Definition at line 44 of file vtkImageCityBlockDistance.h.
vtkImageCityBlockDistance::vtkImageCityBlockDistance | ( | ) | [protected] |
vtkImageCityBlockDistance::~vtkImageCityBlockDistance | ( | ) | [inline, protected] |
Definition at line 48 of file vtkImageCityBlockDistance.h.
static vtkImageCityBlockDistance* vtkImageCityBlockDistance::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
virtual const char* vtkImageCityBlockDistance::GetClassName | ( | ) | [virtual] |
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.
Reimplemented from vtkImageDecomposeFilter.
static int vtkImageCityBlockDistance::IsTypeOf | ( | const char * | type | ) | [static] |
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.
Reimplemented from vtkImageDecomposeFilter.
virtual int vtkImageCityBlockDistance::IsA | ( | const char * | type | ) | [virtual] |
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.
Reimplemented from vtkImageDecomposeFilter.
static vtkImageCityBlockDistance* vtkImageCityBlockDistance::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.
Reimplemented from vtkImageDecomposeFilter.
virtual int vtkImageCityBlockDistance::IterativeRequestUpdateExtent | ( | vtkInformation * | in, | |
vtkInformation * | out | |||
) | [protected, virtual] |
Reimplemented from vtkImageIterateFilter.
virtual int vtkImageCityBlockDistance::IterativeRequestData | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [protected, virtual] |
Reimplemented from vtkImageIterateFilter.
void vtkImageCityBlockDistance::AllocateOutputScalars | ( | vtkImageData * | outData, | |
int * | updateExtent, | |||
int * | wholeExtent | |||
) | [protected] |