im_orconst(3)

im_orconst3

Boolean operations on unsigned char images

Part of im_andimage(3).

Usage

#include <vips/vips.h>

int im_andimage(a, b, out)
IMAGE *a, *b, *out;

int im_andconst(a, out, c)
IMAGE *a, *out;
double c;

int im_and_vec(a, out, n, v)
IMAGE *a, *out;
int n;
double *v;

int im_orimage(a, b, out)
IMAGE *a, *b, *out;

int im_orconst(a, out, c)
IMAGE *a, *out;
double c;

int im_or_vec(a, out, n, v)
IMAGE *a, *out;
int n;
double *v;

int im_eorimage(a, b, out)
IMAGE *a, *b, *out;

int im_eorconst(a, out, c)
IMAGE *a, *out;
double c;

int im_eor_vec(a, out, n, v)
IMAGE *a, *out;
int n;
double *v;

Overview

Perform bitwise logical operations on integer images.

im_andimage(3) performs bitwise and between corresponding pixels in a and b, writing the result to out. Both images must be the same size and have the same number of bands. They can have any integer type.

im_andconst(3) performs bitwise and between pixels in a and a single constant value. im_and_vec(3) lets you specify n constants, one per band.

im_orimage(3) and im_eorimage(3) behave similarly. Use im_eorconst( in, out, -1 ) or im_invert(3) as a not operator.

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

Author

J. Cupitt

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