xil_xor(3)
NAME
xil_xor, xil_xor_const − bitwise logical XOR operations
SYNOPSIS
#include <xil/xil.h>
void xil_xor (XilImage src1,
XilImage src2,
XilImage dst);
void xil_xor_const (XilImage src1,
unsigned int ∗constants,
XilImage dst);
DESCRIPTION
xil_xor () performs a bitwise logical XOR operation on each pixel of the src2 (source) image with the src1 image and stores the result in the dst (destination) image.
xil_xor_const () performs a bitwise logical XOR operation on each pixel of the src1 (source) image with a specified constant and stores the results in the dst (destination) image. For a n-band image, n unsigned integers must be provided, one per band. The value of constants[0] is XORed with the values in band 0, and so on.
ERRORS
For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide.
EXAMPLES
Bitwise logical XOR image2 with image1 and store the result in dst:
XilImage image1, image2, dst;
xil_xor(image1, image2, dst);
Bitwise logical XOR a 4-band image1 with 4 constants and store the result in dst:
XilImage image, dst;
unsigned int constants[4];
constants[0] = 1;
constants[1] = 0;
constants[2] = 0;
constants[3] = 0;
xil_xor_const(image, constants, dst);
NOTES
Source and destination images must be the same data type and have the same number of bands. In-place operations are supported.
SunOS — Last change: 03 August 1993