1mlib_ImageThresh5_Fp_Inp(3MmLeIdBi)aLib Library Functmiloinbs_ImageThresh5_Fp_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageThresh5_Fp_Inp - image thresholding
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageThresh5_Fp_Inp()  function  compares  each  pixel in the
18       source image to two threshold values, tlow and thigh. If the  pixel  is
19       in  between  the  lower threshold value, tlow, and the higher threshold
20       value, thigh, (inclusive on both sides), then the destination pixel  is
21       set  to  the value gray. Otherwise, the destination pixel is set to the
22       value of the source pixel.
23
24
25       It uses the following equation:
26
27         srcdst[x][y][i] = gray[i]  if tlow[i] ≤ srcdst[x][y][i] ≤ thigh[i]
28
29

PARAMETERS

31       The function takes the following arguments:
32
33       srcdst    Pointer to source and destination image.
34
35
36       thigh     High threshold value. thigh[i] holds the high  threshold  for
37                 channel i.
38
39
40       tlow      Low  threshold  value.  tlow[i]  holds  the low threshold for
41                 channel i.
42
43
44       gray      Output grayscale level. gray[i] holds  the  output  grayscale
45                 level for 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_ImageThresh1_Inp(3MLIB),    mlib_ImageTh‐
69       resh2(3MLIB),        mlib_ImageThresh2_Fp(3MLIB),         mlib_ImageTh‐
70       resh2_Fp_Inp(3MLIB),     mlib_ImageThresh2_Inp(3MLIB),    mlib_ImageTh‐
71       resh3(3MLIB),        mlib_ImageThresh3_Fp(3MLIB),         mlib_ImageTh‐
72       resh3_Fp_Inp(3MLIB),     mlib_ImageThresh3_Inp(3MLIB),    mlib_ImageTh‐
73       resh4(3MLIB),        mlib_ImageThresh4_Fp(3MLIB),         mlib_ImageTh‐
74       resh4_Fp_Inp(3MLIB),     mlib_ImageThresh4_Inp(3MLIB),    mlib_ImageTh‐
75       resh5(3MLIB),        mlib_ImageThresh5_Fp(3MLIB),         mlib_ImageTh‐
76       resh5_Inp(3MLIB), attributes(5)
77
78
79
80SunOS 5.11                        2 Mar 2007   mlib_ImageThresh5_Fp_Inp(3MLIB)
Impressum