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

NAME

6       mlib_ImageSub - subtraction
7

SYNOPSIS

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

DESCRIPTION

17       The mlib_ImageSub() function subtracts the second source image from the
18       first source image on a 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]
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_ImageSub_Fp(3MLIB),    mlib_ImageSub1_Fp_Inp(3MLIB),   mlib_Image‐
58       Sub1_Inp(3MLIB),       mlib_ImageSub2_Fp_Inp(3MLIB),        mlib_Image‐
59       Sub2_Inp(3MLIB), attributes(5)
60
61
62
63SunOS 5.11                        2 Mar 2007              mlib_ImageSub(3MLIB)
Impressum