1IM_MEAN_STD(3) Library Functions Manual IM_MEAN_STD(3)
2
3
4
6 im_mean_std_double_buffer, im_mean_std_int_buffer - calculates the mean
7 and the std of data held by a by an int or double buffer
8
10 #include <vips/vips.h>
11
12 int im_mean_std_int_buffer(buf, size, mean, std)
13 int *buf;
14 int size;
15 double *mean, *std;
16
17 int im_mean_std_double_buffer(buf, size, mean, std)
18 double *buf;
19 int size;
20 double *mean, *std;
21
22
24 im_mean_std_int_buffer() and im_mean_std_double_buffer() calculate the
25 mean and the standard deviation (std) of data held by the integer or
26 double buffer buf. The buffer has size elements. The results are
27 returned to the locations pointed by mean and std. It is the responsiā
28 bility of the calling function to ensure that there is enough data in
29 the buffer.
30
32 Both functions returns 0 on success and -1 on error.
33
35 im_avg(3), im_stats(3).
36
38 N. Dessipris
39
41 N. Dessipris - 10/05/1991
42
43
44
45 10 May 1991 IM_MEAN_STD(3)