1REMAINDER(3) Library Functions Manual REMAINDER(3)
2
3
4
6 im_remainder, im_remainderconst, im_remainderconst_vec - remainder
7 after integer division
8
10 #include <vips/vips.h>
11
12 int im_remainder( IMAGE *in1, IMAGE *in2, IMAGE *out )
13
14 int im_remainderconst( IMAGE *in, IMAGE *out, double c )
15
16 int im_remainderconst_vec( IMAGE *in, IMAGE *out, int n, double *c )
17
19 im_remainder(3) calculates the remainder after integer division of two
20 images. The output type is the same as the type of in1 unless in1 is
21 float or complex, in which case the output type is signed integer.
22
23 im_remainderconst(3) calculates the remainder after integer division of
24 in by the constant c. The output type is the same as the type of in
25 unless in is float or complex, in which case the output type is signed
26 integer.
27
28 im_remainderconst_vec(3) works as im_remainderconst(3), but lets you
29 specify a constant per band.
30
31
33 All functions return 0 on success and -1 on error.
34
36 im_add(3), im_lintra(3), im_divide(3)
37
39 National Gallery, 2002
40
41
42
43 May 2002 REMAINDER(3)