1mlib_ImageThresh3_Fp_Inp(3MmLeIdBi)aLib Library Functmiloinbs_ImageThresh3_Fp_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageThresh3_Fp_Inp - image thresholding
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageThresh3_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 value of the source pixel.  If  the  pixel  is
21       greater  than the threshold value, then the destination pixel is set to
22       the high output level.
23
24
25       It uses the following equation:
26
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

RETURN VALUES

45       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
46       MLIB_FAILURE.
47

ATTRIBUTES

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

SEE ALSO

63       mlib_ImageThresh1(3MLIB),   mlib_ImageThresh1_Fp(3MLIB),  mlib_ImageTh‐
64       resh1_Fp_Inp(3MLIB),    mlib_ImageThresh1_Inp(3MLIB),     mlib_ImageTh‐
65       resh2(3MLIB),         mlib_ImageThresh2_Fp(3MLIB),        mlib_ImageTh‐
66       resh2_Fp_Inp(3MLIB),    mlib_ImageThresh2_Inp(3MLIB),     mlib_ImageTh‐
67       resh3(3MLIB),         mlib_ImageThresh3_Fp(3MLIB),        mlib_ImageTh‐
68       resh3_Inp(3MLIB),        mlib_ImageThresh4(3MLIB),        mlib_ImageTh‐
69       resh4_Fp(3MLIB),     mlib_ImageThresh4_Fp_Inp(3MLIB),     mlib_ImageTh‐
70       resh4_Inp(3MLIB),        mlib_ImageThresh5(3MLIB),        mlib_ImageTh‐
71       resh5_Fp(3MLIB),     mlib_ImageThresh5_Fp_Inp(3MLIB),     mlib_ImageTh‐
72       resh5_Inp(3MLIB), attributes(5)
73
74
75
76SunOS 5.11                        2 Mar 2007   mlib_ImageThresh3_Fp_Inp(3MLIB)
Impressum