1IM_ANDIMAGE(3) Library Functions Manual IM_ANDIMAGE(3)
2
3
4
6 im_andimage, im_andconst, im_and_vec, im_orimage, im_orconst,
7 im_or_vec, im_eorimage, im_eorconst, im_eor_vec - boolean operations on
8 unsigned char images
9
11 #include <vips/vips.h>
12
13 int im_andimage(a, b, out)
14 IMAGE *a, *b, *out;
15
16 int im_andconst(a, out, c)
17 IMAGE *a, *out;
18 double c;
19
20 int im_and_vec(a, out, n, v)
21 IMAGE *a, *out;
22 int n;
23 double *v;
24
25 int im_orimage(a, b, out)
26 IMAGE *a, *b, *out;
27
28 int im_orconst(a, out, c)
29 IMAGE *a, *out;
30 double c;
31
32 int im_or_vec(a, out, n, v)
33 IMAGE *a, *out;
34 int n;
35 double *v;
36
37 int im_eorimage(a, b, out)
38 IMAGE *a, *b, *out;
39
40 int im_eorconst(a, out, c)
41 IMAGE *a, *out;
42 double c;
43
44 int im_eor_vec(a, out, n, v)
45 IMAGE *a, *out;
46 int n;
47 double *v;
48
49
51 Perform bitwise logical operations on integer images.
52
53 im_andimage(3) performs bitwise and between corresponding pixels in a
54 and b, writing the result to out. Both images must be the same size
55 and have the same number of bands. They can have any integer type.
56
57 im_andconst(3) performs bitwise and between pixels in a and a single
58 constant value. im_and_vec(3) lets you specify n constants, one per
59 band.
60
61 im_orimage(3) and im_eorimage(3) behave similarly. Use im_eorconst( in,
62 out, -1 ) or im_invert(3) as a not operator.
63
64
66 All functions return 0 on success and -1 on error.
67
69 im_ifthenelse(3), im_equal(3).
70
72 National Gallery, 1992
73
75 J. Cupitt
76
77
78
79 30 October 1992 IM_ANDIMAGE(3)