mediaLib Library Functions mlibVolumeWindowLevel(3MLIB)
NAME
mlibVolumeWindowLevel - window-level operation
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVolumeWindowLevel(mlibu8 *dst,
const mlibs16 *src, mlibs32 window, mlibs32 level,
mlibs32 gmax, mlibs32 gmin, mlibs32 len);
DESCRIPTION
The mlibVolumeWindowLevel() function performs a window-
level operation by using the following equation:
Printed copy or docs.sun.com displays an equation that
represents the window-level operation.
The window-level operation is represented by the following
figure:
Printed copy or docs.sun.com displays a figure that
represents 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 mlibVolumeWindowLevel(3MLIB)
RETURN VALUES
The function returns MLIBSUCES if successful. Otherwise
it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|