MMACH (lmmach) functions


LIBRARY ROUTINE

lvextunion - Do the supremum of multiple images pixel by pixel with an operation gating mask.

LIBRARY CALL

int
lvmsup(xvimage *img1, xvimage *img2, xvimage *img3, int i3_flg, xvimage *img4, int i4_flg, xvimage *img5, int i5_flg, xvimage *img6, int i6_flg, xvimage *img7, int mflg, xvimage *img8)

INPUT

none

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) on failure

DESCRIPTION

vmsup will do the supremum of multiple (up to 6) images pixel by pixel. img1 and img2 are the required input images; img3, img4, img5 and img6 are optional input images. img7 is the gating image, and mflg should be set to 1 if the gating image is to be used. img8 is the output image. A non-zero mask pixel in img7 enables the output pixel to contain the supremum. A zero mask pixel in img7 just transfers the value of the corresponding pixel in img1 to the output pixel.

The input images must be of the same size, data type, and have the same number of data bands, as must the optional mask and output images.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

lvmsup can be defined for all data types supported by Khoros, but at the moment it has been implemented just for the bit and unsigned char types.

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

none

FILES

$MMACH/objects/library/lmmach/src/lvextunion.c

SEE ALSO

lmmach(3)

COPYRIGHT

Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.