Simple Class Reference

Simple distance transform algorithm. More...

#include <Simple.h>

Inheritance diagram for Simple:

DistanceTransform List of all members.

Public Member Functions

 Simple (const int xSize, const int ySize, const bool unload=true)
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

Protected Attributes

P * p

Detailed Description

Simple distance transform algorithm.

The Simple distance transform is simply an exhaustive search. It compares each non border point to its distance from each border point and determines the minimum distance (from the non border point to the border points). Border points are not stored in any auxillary data structure so they must be repeatedly search for in the input binary image. Hence this algorithm is not very efficient.


Member Function Documentation

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

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:55 2006 by  doxygen 1.4.5