MMACH (lmmach) functions
LIBRARY ROUTINE
lvlocmax - Find the local maximum of an image.
LIBRARY CALL
int
lvlocmax(xvimage *img1, mat_str *b, xvimage *img2, int mflg, xvimage *img3)
INPUT
none
OUTPUT
none
RETURN VALUE
TRUE (1) on success, FALSE (0) on failure
DESCRIPTION
vlocmax
will find the local maximum of an image. img1 is the input images; b is a structuring element; img2 is the gating image; mflg is a flag. mflg should be set to 1 if the gating image is to be used. A non-zero mask pixel in img2 enables the output pixel to contain the result. A zero mask pixel in img2 just transfers the value of the corresponding pixel in img1 to the output pixel.
The input image and the optional mask image must be of the same size
and have the same number of data bands. The image img3 is used to
return the result.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
lvlocmax
can be defined for all data types supported by Khoros (except bit), but at the moment it has been implemented just for the unsigned char types.
MODIFICATION
Adriano Nagelschmidt Rodrigues: algorithm change to handle special cases, port to new toolbox version.
FILES
$MMACH/objects/library/lmmach/src/lvlocmax.c
SEE ALSO
lmmach(3)
COPYRIGHT
Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.