MMACH (lmmach) functions
LIBRARY ROUTINE
lvchghomot - Change the homotopy of an image.
LIBRARY CALL
int
lvhomot(xvimage *img1, xvimage *img2, mat_str *b, xvimage *img3, int mflg, xvimage *img4)
INPUT
none
OUTPUT
none
RETURN VALUE
TRUE (1) on success, FALSE (0) on failure
DESCRIPTION
vhomot
will change the homotopy of an image, based on a reference image.
img1 is the input images; img2 is the reference image; b is a structuring element; img3 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 images and the optional mask image must be of the same size, data type
and have the same number of data bands. The image img2 is also used to
return the result.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
lvhomot
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: port to new toolbox version.
FILES
$MMACH/objects/library/lmmach/src/lvchghomot.c
SEE ALSO
lmmach(3)
COPYRIGHT
Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.