SimpleList Class Reference

SimpleList distance transform algorithm. More...

#include <SimpleList.h>

Inheritance diagram for SimpleList:

DistanceTransform List of all members.

Public Member Functions

 SimpleList (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

SimpleList distance transform algorithm.

The SimpleList distance transform is simply an exhaustive search but it employs a list of border points. 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).


Member Function Documentation

virtual bool SimpleList::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:56 2006 by  doxygen 1.4.5