im_remainder(3)

im_remainder3

Remainder after integer division

Usage

#include <vips/vips.h>

int im_remainder( IMAGE *in1, IMAGE *in2, IMAGE *out )

int im_remainderconst( IMAGE *in, IMAGE *out, double c )

int im_remainderconst_vec( IMAGE *in, IMAGE *out, int n, double *c )

Overview

im_remainder(3) calculates the remainder after integer division of two images. The output type is the same as the type of in1 unless in1 is float or complex, in which case the output type is signed integer.

im_remainderconst(3) calculates the remainder after integer division of in by the constant c. The output type is the same as the type of in unless in is float or complex, in which case the output type is signed integer.

im_remainderconst_vec(3) works as im_remainderconst(3), but lets you specify a constant per band.

Return value

All functions return 0 on success and -1 on error.

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

From libvips-dev 7.20.7-1+b3 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.