Dist2d.c File Reference
Detailed Description
2d chamfer distance transform.
For each foreground pixel, the length of the shortest 2D path to the nearest background pixel is computed. The chamfer distance metric is an approximation to the Euclidian distance.
- References:
- G. Borgefors (1984). "Distance Transforms in arbitrary dimensions", CVGIP 27, pp.321-345.
- Author:
- Gabriele Lohmann, MPI-CBS
Function Documentation
VImage VChamferDist2d |
( |
VImage |
src, |
|
|
VImage |
dest, |
|
|
VBand |
band | |
|
) |
| | |
- Parameters:
-
| src | input image (bit repn) |
| dest | output image (float repn) |
| band | id of band to be processed. To select all bands, use 'VAllBands'. |