Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkImageCityBlockDistance Class Reference

1,2 or 3D distance map. More...

#include <vtkImageCityBlockDistance.h>

Inheritance diagram for vtkImageCityBlockDistance:

Inheritance graph
[legend]
Collaboration diagram for vtkImageCityBlockDistance:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)

Static Public Methods

vtkImageCityBlockDistance * New ()
int IsTypeOf (const char *type)
vtkImageCityBlockDistance * SafeDownCast (vtkObject *o)

Protected Methods

 vtkImageCityBlockDistance ()
 ~vtkImageCityBlockDistance ()
 vtkImageCityBlockDistance (const vtkImageCityBlockDistance &)
void operator= (const vtkImageCityBlockDistance &)
void ComputeInputUpdateExtent (int inExt[6], int outExt[6])
void Execute (vtkImageData *inData, vtkImageData *outData)
void Execute ()
void Execute (vtkImageData *outData)
void EnlargeOutputUpdateExtents (vtkDataObject *data)

Detailed Description

1,2 or 3D distance map.

Date:
2000/12/10 20:09:04
Revision:
1.20
Thanks:
Thanks to C. Charles Law who developed this class.
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).
Examples:
vtkImageCityBlockDistance (examples)

Definition at line 69 of file vtkImageCityBlockDistance.h.


Constructor & Destructor Documentation

vtkImageCityBlockDistance::vtkImageCityBlockDistance   [protected]
 

vtkImageCityBlockDistance::~vtkImageCityBlockDistance   [inline, protected]
 

Definition at line 77 of file vtkImageCityBlockDistance.h.

vtkImageCityBlockDistance::vtkImageCityBlockDistance const vtkImageCityBlockDistance &    [inline, protected]
 

Definition at line 78 of file vtkImageCityBlockDistance.h.


Member Function Documentation

vtkImageCityBlockDistance* vtkImageCityBlockDistance::New   [static]
 

Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.

Reimplemented from vtkImageDecomposeFilter.

virtual const char* vtkImageCityBlockDistance::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageDecomposeFilter.

int vtkImageCityBlockDistance::IsTypeOf const char *    type [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageDecomposeFilter.

virtual int vtkImageCityBlockDistance::IsA const char *    type [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageDecomposeFilter.

vtkImageCityBlockDistance* vtkImageCityBlockDistance::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageDecomposeFilter.

void vtkImageCityBlockDistance::operator= const vtkImageCityBlockDistance &    [inline, protected]
 

Definition at line 79 of file vtkImageCityBlockDistance.h.

void vtkImageCityBlockDistance::ComputeInputUpdateExtent int    inExt[6],
int    outExt[6]
[protected, virtual]
 

Reimplemented from vtkImageIterateFilter.

void vtkImageCityBlockDistance::Execute vtkImageData   inData,
vtkImageData   outData
[protected, virtual]
 

Reimplemented from vtkImageIterateFilter.

void vtkImageCityBlockDistance::Execute   [inline, protected, virtual]
 

Reimplemented from vtkImageIterateFilter.

Definition at line 83 of file vtkImageCityBlockDistance.h.

void vtkImageCityBlockDistance::Execute vtkImageData   outData [inline, protected, virtual]
 

Reimplemented from vtkImageIterateFilter.

Definition at line 84 of file vtkImageCityBlockDistance.h.

void vtkImageCityBlockDistance::EnlargeOutputUpdateExtents vtkDataObject   data [protected]
 

Generate more than requested. Called by the superclass before an execute, and before output memory is allocated.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:48:22 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001