VIA - Volumetric Image Analysis
Functions

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:
srcinput image (bit repn)
destoutput image (float repn)
bandid of band to be processed. To select all bands, use 'VAllBands'.