im_mean_std_int_buffer(3)

im_mean_std_int_buffer3

Calculates the mean and the std of data held by a by an int or double buffer

Usage

#include <vips/vips.h>

int im_mean_std_int_buffer(buf, size, mean, std)
int *buf;
int size;
double *mean, *std;

int im_mean_std_double_buffer(buf, size, mean, std)
double *buf;
int size;
double *mean, *std;

Overview

im_mean_std_int_buffer() and im_mean_std_double_buffer() calculate the mean and the standard deviation (std) of data held by the integer or double buffer buf. The buffer has size elements. The results are returned to the locations pointed by mean and std. It is the responsibility of the calling function to ensure that there is enough data in the buffer.

Return value

Both functions returns 0 on success and -1 on error.

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

Author

N. Dessipris - 10/05/1991

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