mediaLib Library Functions mlib_VolumeWindowLevel(3MLIB)
NAME
mlib_VolumeWindowLevel - window-level operation
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlib_status mlib_VolumeWindowLevel(mlib_u8 *dst,
const mlib_s16 *src, mlib_s32 window, mlib_s32 level,
mlib_s32 gmax, mlib_s32 gmin, mlib_s32 len);
DESCRIPTION
The mlib_VolumeWindowLevel() function performs a window-
level operation by using the following equation: Printed copy or docs.sun.com displays an equation thatrepresents the window-level operation.
The window-level operation is represented by the following
figure: Printed copy or docs.sun.com displays a figure thatrepresents the window-level operation.
PARAMETERS
The function takes the following arguments: dst Pointer to the output or destination array. src Pointer to the input or source array. window Width of the window. level Center of the window. gmax Maximum grayscale in the destination array. gmin Minimum grayscale in the destination array. len Length of the data array.SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlib_VolumeWindowLevel(3MLIB)
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise
it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
attributes(5)SunOS 5.11 Last change: 2 Mar 2007 2