xil_and(3)
NAME
xil_and, xil_and_const − bitwise logical AND operations
SYNOPSIS
#include <xil/xil.h>
void xil_and (XilImage src1,
XilImage src2,
XilImage dst);
void xil_and_const (XilImage src1,
unsigned int ∗constants,
XilImage dst);
DESCRIPTION
xil_and () performs a bitwise logical AND operation on each pixel of the src2 (source) image with the src1 and stores the results in the dst (destination) image.
xil_and_const () performs a bitwise logical AND operation on each pixel of the src1 (source) image with the constants values and stores the results in the dst (destination) image. For an n-band image, n unsigned integers must be provided, one per band.
ERRORS
For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide.
EXAMPLES
Bitwise logical AND image2 and image1 and store the result in dst :
XilImage image1, image2, dst;
xil_and(image1, image2, dst);
Bitwise logical AND 4-band image1 and 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_and_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. Logical operations (AND, OR, XOR, NOT, and so on) are not supported for XIL_FLOAT data type.
SunOS 5.6 — Last change: 03 August 1993