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

Public Member Functions | |
| Chamfer2D_3x3 (const int xSize, const int ySize, const bool unload=true) | |
| void | doTransform (const unsigned char *const I) |
| void | doTransform (const unsigned char *const I, const int dx, const int dy, const int dxy, const bool halfIsZero) |
| int | iterateTransform (const unsigned char *const I) |
| int | iterateTransform (const unsigned char *const I, const int dx, const int dy, const int dxy, const bool halfIsZero) |
| template<class T> | |
| bool | check2 (T *d, const int center, const int X, const int Y, const T Delta) |
|
||||||||||||||||||||||||
|
This method performs the distance transform. I is the 2D binary input image. dx & dy are the distances in the x and y directions (they need not be the same). dxy is the distance in the diagonal direction. If halfIsZero is true, then border elements (elements of the immediate interior and exterior are initialized with values of 0. If halfIsZero is false, then border elements are initialized with dx/2 if the border is in the x direction, dy/2 if the border is in the y direction, or min(dx/2, dy/2) for both. |
|
|
This method simply calls the other doTransform method with the following arguments: doTransform(I, 3, 3, 4, true). Arguments of (2,3) have been used to replace (3,4) as well. Implements DistanceTransform. |
|
||||||||||||||||||||||||
|
This method is similar to the doTransform method except that it repeats the forward and backward passes of the distance transform algorithm until no more distance updates occur (until convergence, in effect). |
|
|
This method simply calls the other iterateTransform method with the following arguments: iterateTransform(I, 3, 3, 4, true). Arguments of (2,3) have been used to replace (3,4) as well. |
1.4.5