1mlib_VolumeWindowLevel(3MLImBe)diaLib Library Functiomnlsib_VolumeWindowLevel(3MLIB)
2
3
4
6 mlib_VolumeWindowLevel - window-level operation
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12
13 mlib_status mlib_VolumeWindowLevel(mlib_u8 *dst,
14 const mlib_s16 *src, mlib_s32 window, mlib_s32 level,
15 mlib_s32 gmax, mlib_s32 gmin, mlib_s32 len);
16
17
19 The mlib_VolumeWindowLevel() function performs a window-level operation
20 by using the following equation:
21
22 Printed copy or docs.sun.com displays an equation that represents the
23 window-level operation.
24
25
26 The window-level operation is represented by the following figure:
27
28 Printed copy or docs.sun.com displays a figure that represents the win‐
29 dow-level operation.
30
32 The function takes the following arguments:
33
34 dst Pointer to the output or destination array.
35
36
37 src Pointer to the input or source array.
38
39
40 window Width of the window.
41
42
43 level Center of the window.
44
45
46 gmax Maximum grayscale in the destination array.
47
48
49 gmin Minimum grayscale in the destination array.
50
51
52 len Length of the data array.
53
54
56 The function returns MLIB_SUCCESS if successful. Otherwise it returns
57 MLIB_FAILURE.
58
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
74 attributes(5)
75
76
77
78SunOS 5.11 2 Mar 2007 mlib_VolumeWindowLevel(3MLIB)