#include <CityBlockDistanceTransform.h>
Public Member Functions | |
CityBlockDistanceTransform () | |
Default constructor. | |
virtual void | Run () |
Run distance transform. | |
virtual | ~CityBlockDistanceTransform () |
Destructor. | |
Public Member Functions inherited from mirtk::ImageToImage< TVoxel > | |
ImageToImage () | |
Constructor. | |
virtual bool | RequiresBuffering () const |
virtual double | Run (int, int, int, int=0) |
Run filter on single voxel. | |
virtual | ~ImageToImage () |
Destructor. | |
Public Member Functions inherited from mirtk::Object | |
virtual const char * | NameOfClass () const =0 |
Get name of class, which this object is an instance of. | |
virtual ParameterList | Parameter () const |
Get parameter name/value pairs. | |
bool | Parameter (const ParameterList &) |
Set parameters from name/value pairs. | |
virtual bool | Set (const char *name, const char *value) |
virtual | ~Object () |
Destructor. | |
Protected Member Functions | |
virtual void | Finalize () |
Finalize the filter. | |
virtual void | Initialize () |
Initialize the filter. | |
virtual void | Initialize2D () |
Initialize the filter. | |
virtual void | Initialize3D () |
Initialize the filter. | |
virtual void | Run2D () |
Run distance transform in 2D. | |
virtual void | Run3D () |
Run distance transform in 3D. | |
Protected Member Functions inherited from mirtk::ImageToImage< TVoxel > | |
void | Initialize (bool) |
mirtkAggregateMacro (ImageType, Buffer) | |
Buffer. | |
mirtkPublicAggregateMacro (const ImageType, Input) | |
Input image for filter. | |
mirtkPublicAggregateMacro (ImageType, Output) | |
Output image for filter. | |
Protected Member Functions inherited from mirtk::Object | |
template<typename... Args> | |
void | Throw (ErrorType err, const char *func, Args... args) const |
Additional Inherited Members | |
Public Types inherited from mirtk::ImageToImage< TVoxel > | |
typedef GenericImage< VoxelType > | ImageType |
Input/output image type. | |
typedef TVoxel | VoxelType |
Input/output image voxel type. | |
Static Public Member Functions inherited from mirtk::Object | |
static const char * | NameOfType () |
Get name of this class type. | |
Static Protected Member Functions inherited from mirtk::Object | |
template<typename... Args> | |
static void | ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args) |
City block image distance transform
Find the City Block (Manhattan, L1) distance for all object voxels in an image from the boundary. Object voxels have a value greater than zero and background voxels are the rest. The distance map is initialised to zero. In each iteration, the distance map is incremented by 1 for all object voxels. The border voxels are removed and the the next iteration starts. If any dimension is a singleton, a 2D version is applied.
Definition at line 42 of file CityBlockDistanceTransform.h.