Synopsis
HxImageRep HxDistanceTransform (HxImageRep img)
Return value
HxImageRep
Description
The function HxDistanceTransform calculates the shortest distance (approximately) to the background for every object pixel, through a recursive morphological operation. Background pixels are defined as pixels with value 0, while object pixels are defined as pixels with value 1. The input image should be a 2D scalar image of the type short, byte or integer. The image should also contain at least one background pixel. The resulting image is a scalar double 2D image.
Remarks
See also
anchor_HxParabolicErosion, anchor_HxParabolicDilation,
Keywords
Morphology,