Dist2d.c File Reference


Functions

VImage VChamferDist2d (VImage src, VImage dest, VBand band)

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'.


Generated on Thu Feb 16 21:10:38 2012 for VIA - Volumetric Image Analysis by  doxygen 1.5.6