lvdist - Do the distance function of a binary image.
LIBRARY CALL
int
lvdist(xvimage *img1, int cv, xvimage *img2)
INPUT
none
OUTPUT
none
RETURN VALUE
TRUE (1) on success, FALSE (0) on failure
DESCRIPTION
lvdist
Will do the distance function of a binary image.
img1 is the input image (of the VIFF_TYP_1_BYTE data type), img2 is the output image (of the VFF_TYP_2_BYTE data type). cv is an integer parameter that indicates wich distance function is desired (1 for euclidean, 4 for 4-connectivity City Bl. or 8 for 8-connectivity City Bl).
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
lvdist
The input and output images must be of the same size. The input and output image data types should be, respectively, VFF_TYP_1_BYTE and VFF_TYP_2_BYTE.
MODIFICATION
none
FILES
$MMACH/objects/library/lmmach/src/lvdist.c
SEE ALSO
mmach(3)
COPYRIGHT
Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.