Functions | |
VImage | VChamferDist3d (VImage src, VImage dest, VRepnKind repn) |
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.
VImage VChamferDist3d | ( | VImage | src, | |
VImage | dest, | |||
VRepnKind | repn | |||
) |
src | input image (bit repn) | |
dest | output image (short of float repn) | |
repn | output pixel repn (VShortRepn or VFloatRepn). If 'short' is used, then the distance values are multiplied by a factor of 10. |