MMACH (lmmach) functions
LIBRARY ROUTINE
lvequal - Compares two images, if they are equal affects a cantata variable with one, otherwise affects it with zero.
LIBRARY CALL
int
lvequal(xvimage *img1, xvimage *img2, int img2_flg, int c, int *value)
INPUT
none
OUTPUT
none
RETURN VALUE
TRUE (1) on success, FALSE (0) on failure
DESCRIPTION
lvequal
compares two imput images pixel by pixel, if they are equal affects a cantata variable with one, otherwise affects it with zero.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
lvequal can be defined for all data types supported by khoros, but at the moment it is implemented only for bit and unsigned char images.
Due to the simultaneous processing of 32 pixels in BIT images, input images of the BIT data type must be converted to a special data structure before the library is called. This can be accomplished by using the format routine. After the library call, the unformat routine can convert the image back to the BIT data type.
MODIFICATION
Adriano Nagelschmidt Rodrigues, Luiz Fernando Vieira: port to new toolbox, constant image option.
FILES
$MMACH/objects/library/lmmach/src/lvequal.c
SEE ALSO
lmmach(3)
COPYRIGHT
Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.