EightSED Class Reference

Danielsson's 8-connected Sequential Euclidean Distance transform. More...

#include <EightSED.h>

Inheritance diagram for EightSED:

DistanceTransform EightSED_modified List of all members.

Public Member Functions

 EightSED (const int xSize, const int ySize, const bool unload=true)
virtual void doTransform (const unsigned char *const I)
 calculate the distance transform
virtual bool getP (const int x, const int y, int &px, int &py) const
 return the "parent" (border point) associated with this point

Protected Member Functions

void init (double *d)
void initImmediate (const unsigned char *const I, double *d)

Protected Attributes

P * p

Detailed Description

Danielsson's 8-connected Sequential Euclidean Distance transform.

As described in P.-E. Danielsson, "Euclidean Distance Mapping," Computer Graphics and Image Processing 14:227-248, 1980.


Member Function Documentation

virtual bool EightSED::getP const int  x,
const int  y,
int &  px,
int &  py
const [virtual]
 

return the "parent" (border point) associated with this point

Parameters:
x is the x location
y is the y location
px is the parent's x location to be returned
py is the parent's y location to be returned
Returns:
true if the parent is know; otherwise false.

Reimplemented from DistanceTransform.


The documentation for this class was generated from the following files:
Generated on Thu Jan 12 10:28:53 2006 by  doxygen 1.4.5