1mlib_ImageThresh1_Inp(3MLIBm)ediaLib Library Functionmslib_ImageThresh1_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageThresh1_Inp - image thresholding
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageThresh1_Inp(mlib_image *srcdst,
13            const mlib_s32 *thresh, const mlib_s32 *ghigh, const mlib_s32 *glow);
14
15

DESCRIPTION

17       The  mlib_ImageThresh1_Inp()  function compares each pixel in the image
18       to a threshold value on a per-channel basis. If the pixel is less  than
19       or  equal  to  the  threshold value, then it is reset to the low output
20       level. If the pixel is greater than the threshold  value,  then  it  is
21       reset to the high output level.
22
23
24       It uses the following equation:
25
26         srcdst[x][y][i] = glow[i]   if srcdst[x][y][i] ≤ thresh[i]
27         srcdst[x][y][i] = ghigh[i]  if srcdst[x][y][i] > thresh[i]
28
29

PARAMETERS

31       The function takes the following arguments:
32
33       srcdst    Pointer to source and destination image.
34
35
36       thresh    Threshold value. thresh[i] contains the threshold for channel
37                 i.
38
39
40       ghigh     High output level. ghigh[i] contains the  high  output  level
41                 for channel i.
42
43
44       glow      Low  output  level. glow[i] contains the low output level for
45                 channel i.
46
47

RETURN VALUES

49       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
50       MLIB_FAILURE.
51

ATTRIBUTES

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

SEE ALSO

67       mlib_ImageThresh1(3MLIB),   mlib_ImageThresh1_Fp(3MLIB),  mlib_ImageTh‐
68       resh1_Fp_Inp(3MLIB),      mlib_ImageThresh2(3MLIB),       mlib_ImageTh‐
69       resh2_Fp(3MLIB),     mlib_ImageThresh2_Fp_Inp(3MLIB),     mlib_ImageTh‐
70       resh2_Inp(3MLIB),        mlib_ImageThresh3(3MLIB),        mlib_ImageTh‐
71       resh3_Fp(3MLIB),     mlib_ImageThresh3_Fp_Inp(3MLIB),     mlib_ImageTh‐
72       resh3_Inp(3MLIB),        mlib_ImageThresh4(3MLIB),        mlib_ImageTh‐
73       resh4_Fp(3MLIB),     mlib_ImageThresh4_Fp_Inp(3MLIB),     mlib_ImageTh‐
74       resh4_Inp(3MLIB),        mlib_ImageThresh5(3MLIB),        mlib_ImageTh‐
75       resh5_Fp(3MLIB),     mlib_ImageThresh5_Fp_Inp(3MLIB),     mlib_ImageTh‐
76       resh5_Inp(3MLIB), attributes(5)
77
78
79
80SunOS 5.11                        2 Mar 2007      mlib_ImageThresh1_Inp(3MLIB)
Impressum