1mlib_ImageAve_Inp(3MLIB) mediaLib Library Functions mlib_ImageAve_Inp(3MLIB)
2
3
4
6 mlib_ImageAve_Inp - average of two images, in place
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageAve_Inp(mlib_image *src1dst, const mlib_image *src2);
13
14
16 The mlib_ImageAve_Inp() function computes the average of two images on
17 a pixel-by-pixel basis, in place.
18
19
20 It uses the following equation:
21
22 src1dst[x][y][i] = (src1dst[x][y][i] + src2[x][y][i] + 1) / 2
23
24
26 The function takes the following arguments:
27
28 src1dst Pointer to first source and destination image.
29
30
31 src2 Pointer to second source image.
32
33
35 The function returns MLIB_SUCCESS if successful. Otherwise it returns
36 MLIB_FAILURE.
37
39 See attributes(5) for descriptions of the following attributes:
40
41
42
43
44 ┌─────────────────────────────┬─────────────────────────────┐
45 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
46 ├─────────────────────────────┼─────────────────────────────┤
47 │Interface Stability │Committed │
48 ├─────────────────────────────┼─────────────────────────────┤
49 │MT-Level │MT-Safe │
50 └─────────────────────────────┴─────────────────────────────┘
51
53 mlib_ImageAve(3MLIB), mlib_ImageAve_Fp(3MLIB),
54 mlib_ImageAve_Fp_Inp(3MLIB), attributes(5)
55
56
57
58SunOS 5.11 23 May 2007 mlib_ImageAve_Inp(3MLIB)