lvor(3)

LIBRARY ROUTINE
lvor - Logically OR two images pixel by pixel.

LIBRARY CALL
#include "vinclude.h"
int
lvor(img1,img2)
struct xvimage *img1, *img2;

INPUT

    1. img1 -- first xvimage structure
    2. img2 -- second xvimage structure

    The inputs must be of the same data type and size.

OUTPUT

    1. img1 -- output xvimage structure

    img1 is used for both the input xvimage structure and the output result xvimage structure. This is done to save space, but you must be careful not to overwrite important data.

    lvor returns a zero upon failure.

MODIFICATIONS
Marcelo Teran, John Rasure

DESCRIPTION
lvor performs a logical OR between two images.

img1  img2  output
------------------
~0    ~0    img1
~0     0    img1
 0    ~0    img2
 0     0    img1 (0)
The result is set to img1, except when image one is zero and image two is nonzero.

The inputs must be of the same data type and size.

The output image data type is the same as the input data type.

img1 is used for both the input xvimage structure and the output result xvimage structure. This is done to save space, but you must be careful not to overwrite important data.

lvor returns a value of one upon success and a zero on failure.

SEE ALSO
vor(1), intro(3), vipl(3), verror(3), vutils(3)

RESTRICTIONS
lvor will not operate on Bit data storage type images.

AUTHOR
Scott Wilson

COPYRIGHT
Copyright 1991, University of New Mexico. All rights reserved.