VIA - Volumetric Image Analysis
Functions
ChamferDist3d.c File Reference

Functions

VImage VChamferDist3d (VImage src, VImage dest, VRepnKind repn)

Detailed Description

3d chamfer distance transform.

For each background voxel, the length of the shortest 3D path to the nearest foreground voxel 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.
A.L.D. Beckers, A.W.M. Smeulders (1992), "Optimization of Length measurements for isotropic distance transformations in three dimensions", CVGIP: Image understanding, Vol. 55, No.3, pp- 296-306.
Author:
Gabriele Lohmann, MPI-CBS

Function Documentation

VImage VChamferDist3d ( VImage  src,
VImage  dest,
VRepnKind  repn 
)
Parameters:
srcinput image (bit repn)
destoutput image (short of float repn)
repnoutput pixel repn (VShortRepn or VFloatRepn). If 'short' is used, then the distance values are multiplied by a factor of 10.