1mlib_ImageThresh4_Fp_Inp(3MmLeIdBi)aLib Library Functmiloinbs_ImageThresh4_Fp_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageThresh4_Fp_Inp - image thresholding
7

SYNOPSIS

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

DESCRIPTION

18       The  mlib_ImageThresh4_Fp_Inp()  function  compares  each  pixel in the
19       source image to two threshold values, tlow and thigh. If the  pixel  is
20       less  than  the lower threshold value, tlow, then the destination pixel
21       is set to the lower output level, glow. If the pixel  is  greater  than
22       the higher threshold value, thigh, then the destination pixel is set to
23       the higher output level, ghigh. Otherwise, the destination pixel is set
24       to the value of the source pixel.
25
26
27       It uses the following equation:
28
29         srcdst[x][y][i] = glow[i]   if srcdst[x][y][i] < tlow[i]
30         srcdst[x][y][i] = ghigh[i]  if srcdst[x][y][i] > thigh[i]
31
32

PARAMETERS

34       The function takes the following arguments:
35
36       srcdst    Pointer to source and destination image.
37
38
39       thigh     High  threshold  value. thigh[i] holds the high threshold for
40                 channel i.
41
42
43       tlow      Low threshold value. tlow[i]  holds  the  low  threshold  for
44                 channel i.
45
46
47       ghigh     High  output  grayscale level. ghigh[i] holds the high output
48                 grayscale level for channel i.
49
50
51       glow      Low output grayscale level.  glow[i]  holds  the  low  output
52                 grayscale level for channel i.
53
54

RETURN VALUES

56       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
57       MLIB_FAILURE.
58

ATTRIBUTES

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

SEE ALSO

74       mlib_ImageThresh1(3MLIB),  mlib_ImageThresh1_Fp(3MLIB),   mlib_ImageTh‐
75       resh1_Fp_Inp(3MLIB),     mlib_ImageThresh1_Inp(3MLIB),    mlib_ImageTh‐
76       resh2(3MLIB),        mlib_ImageThresh2_Fp(3MLIB),         mlib_ImageTh‐
77       resh2_Fp_Inp(3MLIB),     mlib_ImageThresh2_Inp(3MLIB),    mlib_ImageTh‐
78       resh3(3MLIB),        mlib_ImageThresh3_Fp(3MLIB),         mlib_ImageTh‐
79       resh3_Fp_Inp(3MLIB),     mlib_ImageThresh3_Inp(3MLIB),    mlib_ImageTh‐
80       resh4(3MLIB),        mlib_ImageThresh4_Fp(3MLIB),         mlib_ImageTh‐
81       resh4_Inp(3MLIB),        mlib_ImageThresh5(3MLIB),        mlib_ImageTh‐
82       resh5_Fp(3MLIB),     mlib_ImageThresh5_Fp_Inp(3MLIB),     mlib_ImageTh‐
83       resh5_Inp(3MLIB), attributes(5)
84
85
86
87SunOS 5.11                        2 Mar 2007   mlib_ImageThresh4_Fp_Inp(3MLIB)
Impressum