1mlib_ImageMinimum(3MLIB) mediaLib Library Functions mlib_ImageMinimum(3MLIB)
2
3
4
6 mlib_ImageMinimum - image minimum
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageMinimum(mlib_s32 *min, const mlib_image *img);
13
14
16 The mlib_ImageMinimum() function determines the minimum value for each
17 channel in an image.
18
19
20 It uses the following equation:
21
22 min[i] = MIN{ img[x][y][i]; 0 ≤ x < w, 0 ≤ y < h }
23
24
26 The function takes the following arguments:
27
28 min Pointer to minimum vector, where length is the number of chan‐
29 nels in the image. min[i] contains the minimum of channel i.
30
31
32 img Pointer to a source image.
33
34
36 The function returns MLIB_SUCCESS if successful. Otherwise it returns
37 MLIB_FAILURE.
38
40 See attributes(5) for descriptions of the following attributes:
41
42
43
44
45 ┌─────────────────────────────┬─────────────────────────────┐
46 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
47 ├─────────────────────────────┼─────────────────────────────┤
48 │Interface Stability │Committed │
49 ├─────────────────────────────┼─────────────────────────────┤
50 │MT-Level │MT-Safe │
51 └─────────────────────────────┴─────────────────────────────┘
52
54 mlib_ImageMaximum(3MLIB), mlib_ImageMaximum_Fp(3MLIB), mlib_ImageMini‐
55 mum_Fp(3MLIB), attributes(5)
56
57
58
59SunOS 5.11 2 Mar 2007 mlib_ImageMinimum(3MLIB)