1mlib_ImageThresh2_Inp(3MLIBm)ediaLib Library Functionmslib_ImageThresh2_Inp(3MLIB)
2
3
4
6 mlib_ImageThresh2_Inp - image thresholding
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageThresh2_Inp(mlib_image *srcdst,
13 const mlib_s32 *thresh, const mlib_s32 *glow);
14
15
17 The mlib_ImageThresh2_Inp() function compares each pixel in the source
18 image to a threshold value, in place. If the pixel is less than or
19 equal to the threshold value, then the destination pixel is set to the
20 low output level. If the pixel is greater than the threshold value,
21 then the destination pixel is set to the value of the source pixel.
22
23
24 It uses the following equation:
25
26 srcdst[x][y][i] = glow[i] if srcdst[x][y][i] ≤ thresh[i]
27
28
30 The function takes the following arguments:
31
32 srcdst Pointer to source and destination image.
33
34
35 thresh Threshold value. thresh[i] contains the threshold for channel
36 i.
37
38
39 glow Low output level. glow[i] contains the low output level for
40 channel i.
41
42
44 The function returns MLIB_SUCCESS if successful. Otherwise it returns
45 MLIB_FAILURE.
46
48 See attributes(5) for descriptions of the following attributes:
49
50
51
52
53 ┌─────────────────────────────┬─────────────────────────────┐
54 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │Interface Stability │Committed │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │MT-Level │MT-Safe │
59 └─────────────────────────────┴─────────────────────────────┘
60
62 mlib_ImageThresh1(3MLIB), mlib_ImageThresh1_Fp(3MLIB), mlib_ImageTh‐
63 resh1_Fp_Inp(3MLIB), mlib_ImageThresh1_Inp(3MLIB), mlib_ImageTh‐
64 resh2(3MLIB), mlib_ImageThresh2_Fp(3MLIB), mlib_ImageTh‐
65 resh2_Fp_Inp(3MLIB), mlib_ImageThresh3(3MLIB), mlib_ImageTh‐
66 resh3_Fp(3MLIB), mlib_ImageThresh3_Fp_Inp(3MLIB), mlib_ImageTh‐
67 resh3_Inp(3MLIB), mlib_ImageThresh4(3MLIB), mlib_ImageTh‐
68 resh4_Fp(3MLIB), mlib_ImageThresh4_Fp_Inp(3MLIB), mlib_ImageTh‐
69 resh4_Inp(3MLIB), mlib_ImageThresh5(3MLIB), mlib_ImageTh‐
70 resh5_Fp(3MLIB), mlib_ImageThresh5_Fp_Inp(3MLIB), mlib_ImageTh‐
71 resh5_Inp(3MLIB), attributes(5)
72
73
74
75SunOS 5.11 2 Mar 2007 mlib_ImageThresh2_Inp(3MLIB)