1mlib_ImageAve(3MLIB)      mediaLib Library Functions      mlib_ImageAve(3MLIB)
2
3
4

NAME

6       mlib_ImageAve - average of two images
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageAve(mlib_image *dst, const mlib_image *src1,
13            const mlib_image *src2);
14
15

DESCRIPTION

17       The  mlib_ImageAve()  function  computes the average of two images on a
18       pixel-by-pixel basis.
19
20
21       It uses the following equation:
22
23         dst[x][y][i] = (src1[x][y][i] + src2[x][y][i] + 1) / 2
24
25

PARAMETERS

27       The function takes the following arguments:
28
29       dst     Pointer to destination image.
30
31
32       src1    Pointer to first source image.
33
34
35       src2    Pointer to second source image.
36
37

RETURN VALUES

39       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
40       MLIB_FAILURE.
41

ATTRIBUTES

43       See attributes(5) for descriptions of the following attributes:
44
45
46
47
48       ┌─────────────────────────────┬─────────────────────────────┐
49       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │Interface Stability          │Committed                    │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │MT-Level                     │MT-Safe                      │
54       └─────────────────────────────┴─────────────────────────────┘
55

SEE ALSO

57       mlib_ImageAve_Fp(3MLIB),                   mlib_ImageAve_Fp_Inp(3MLIB),
58       mlib_ImageAve_Inp(3MLIB), attributes(5)
59
60
61
62SunOS 5.11                        23 May 2007             mlib_ImageAve(3MLIB)
Impressum