1mlib_ImageThresh1_Fp_Inp(3MmLeIdBi)aLib Library Functmiloinbs_ImageThresh1_Fp_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageThresh1_Fp_Inp - image thresholding
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageThresh1_Fp_Inp()  function  compares  each  pixel in the
18       floating-point source image to a threshold  value,  in  place.  If  the
19       pixel  is  less than or equal to the threshold value, then the destina‐
20       tion pixel is set to the low output level. If the pixel is greater than
21       the threshold value, then the destination pixel is set to the high out‐
22       put level.
23
24
25       It uses the following equation:
26
27         srcdst[x][y][i] = glow[i]   if srcdst[x][y][i] ≤ thresh[i]
28         srcdst[x][y][i] = ghigh[i]  if srcdst[x][y][i] > thresh[i]
29
30

PARAMETERS

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

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

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