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

NAME

6       mlib_ImageXProj_Fp - image X projection
7

SYNOPSIS

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

DESCRIPTION

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

PARAMETERS

34       The function takes the following arguments:
35
36       xproj    Pointer to X-projection vector, where length is equal  to  the
37                number  of  columns  in  the source image (in other words, the
38                image width).
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_ImageYProj(3MLIB),
64       mlib_ImageYProj_Fp(3MLIB), attributes(5)
65
66
67
68SunOS 5.11                        2 Mar 2007         mlib_ImageXProj_Fp(3MLIB)
Impressum