im_bandmean(3)

im_bandmean3

Average bands in an image

Usage

#include <vips/vips.h>

int im_bandmean( in, out )
IMAGE *in, *out;

Overview

im_bandmean(3) writes a one-band image where each pixel is the average of the bands for that pixel in the input image. The output band format is the same as the input band format.

Any size, any number of bands, any type.

Return value

The function returns 0 on success and -1 on error.

Releases

Unchanged in 2 releases since Debian 5.0 (Lenny).

  1. 5.0–6.0

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