1mlib_ImageHistogram(3MLIB)mediaLib Library Functionsmlib_ImageHistogram(3MLIB)
2
3
4
6 mlib_ImageHistogram - histogram
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageHistogram(mlib_s32 **histo, const mlib_image *img);
13
14
16 The mlib_ImageHistogram() function creates a histogram. The data type
17 of the image can be MLIB_BYTE, MLIB_SHORT, MLIB_USHORT, or MLIB_INT.
18
20 The function takes the following arguments:
21
22 histo Pointer to histogram. The format of the histogram is
23 histo[channel][index]. The MLIB_BYTE type entries are indexed
24 from 0 to 255. The MLIB_SHORT type entries are indexed from
25 -32768 to -1, then from 0 to 32767. The MLIB_USHORT type
26 entries are indexed from 0 to 65535. The MLIB_INT type entries
27 are indexed from -2147483648 to -1, then from 0 to 2147483647.
28
29
30 img Pointer to source image.
31
32
34 The function returns MLIB_SUCCESS if successful. Otherwise it returns
35 MLIB_FAILURE.
36
38 See attributes(5) for descriptions of the following attributes:
39
40
41
42
43 ┌─────────────────────────────┬─────────────────────────────┐
44 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
45 ├─────────────────────────────┼─────────────────────────────┤
46 │Interface Stability │Committed │
47 ├─────────────────────────────┼─────────────────────────────┤
48 │MT-Level │MT-Safe │
49 └─────────────────────────────┴─────────────────────────────┘
50
52 mlib_ImageHistogram2(3MLIB), attributes(5)
53
54
55
56SunOS 5.11 2 Mar 2007 mlib_ImageHistogram(3MLIB)