#include <Simple.h>
Inheritance diagram for Simple:

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 |
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.
|
||||||||||||||||||||
|
Reimplemented from DistanceTransform. |
1.4.5