1mlib_ImageThresh5_Fp(3MLIB)mediaLib Library Functionsmlib_ImageThresh5_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageThresh5_Fp - image thresholding
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageThresh5_Fp()  function compares each pixel in the source
18       image to two threshold values, tlow and  thigh.  If  the  pixel  is  in
19       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         dst[x][y][i] = src[x][y][i]  if src[x][y][i] < tlow[i]
28         dst[x][y][i] = gray[i]       if tlow[i] ≤ src[x][y][i] ≤ thigh[i]
29         dst[x][y][i] = src[x][y][i]  if src[x][y][i] > thigh[i]
30
31

PARAMETERS

33       The function takes the following arguments:
34
35       dst      Pointer to destination image.
36
37
38       src      Pointer to source image.
39
40
41       thigh    High threshold value. thigh[i] holds the  high  threshold  for
42                channel i.
43
44
45       tlow     Low threshold value. tlow[i] holds the low threshold for chan‐
46                nel i.
47
48
49       gray     Output grayscale level. gray[i]  holds  the  output  grayscale
50                level for channel i.
51
52

RETURN VALUES

54       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
55       MLIB_FAILURE.
56

ATTRIBUTES

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

SEE ALSO

72       mlib_ImageThresh1(3MLIB),  mlib_ImageThresh1_Fp(3MLIB),   mlib_ImageTh‐
73       resh1_Fp_Inp(3MLIB),     mlib_ImageThresh1_Inp(3MLIB),    mlib_ImageTh‐
74       resh2(3MLIB),        mlib_ImageThresh2_Fp(3MLIB),         mlib_ImageTh‐
75       resh2_Fp_Inp(3MLIB),     mlib_ImageThresh2_Inp(3MLIB),    mlib_ImageTh‐
76       resh3(3MLIB),        mlib_ImageThresh3_Fp(3MLIB),         mlib_ImageTh‐
77       resh3_Fp_Inp(3MLIB),     mlib_ImageThresh3_Inp(3MLIB),    mlib_ImageTh‐
78       resh4(3MLIB),        mlib_ImageThresh4_Fp(3MLIB),         mlib_ImageTh‐
79       resh4_Fp_Inp(3MLIB),     mlib_ImageThresh4_Inp(3MLIB),    mlib_ImageTh‐
80       resh5(3MLIB),      mlib_ImageThresh5_Fp_Inp(3MLIB),       mlib_ImageTh‐
81       resh5_Inp(3MLIB), attributes(5)
82
83
84
85SunOS 5.11                        2 Mar 2007       mlib_ImageThresh5_Fp(3MLIB)
Impressum