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

NAME

6       mlib_ImageYProj - image Y projection
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageYProj(mlib_d64 *yproj, const mlib_image *img);
13
14

DESCRIPTION

16       The  mlib_ImageYProj()  function computes the sum of the pixels in each
17       row of the source image.
18
19
20       The image must be a single-channel image.
21
22
23       It uses the following equation:
24
25                    w-1
26         yproj[y] = SUM img[x][y][0]
27                    x=0
28
29
30
31       where y = 0, 1, ..., h - 1.
32

PARAMETERS

34       The function takes the following arguments:
35
36       yproj    Pointer to Y-projection vector, where length is equal  to  the
37                number  of rows in the source image (in other words, the image
38                height).
39
40
41       img      Pointer to an input image.
42
43

RETURN VALUES

45       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
46       MLIB_FAILURE.
47

ATTRIBUTES

49       See attributes(5) for descriptions of the following attributes:
50
51
52
53
54       ┌─────────────────────────────┬─────────────────────────────┐
55       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
56       ├─────────────────────────────┼─────────────────────────────┤
57       │Interface Stability          │Committed                    │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │MT-Level                     │MT-Safe                      │
60       └─────────────────────────────┴─────────────────────────────┘
61

SEE ALSO

63       mlib_ImageXProj(3MLIB),                      mlib_ImageXProj_Fp(3MLIB),
64       mlib_ImageYProj_Fp(3MLIB), attributes(5)
65
66
67
68SunOS 5.11                        2 Mar 2007            mlib_ImageYProj(3MLIB)
Impressum