mediaLib Library Functions mlibImageExtrema2(3MLIB)
NAME
mlibImageExtrema2, mlibImageExtrema2Fp - image extrema
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageExtrema2(mlibs32 *min, mlibs32 *max,
const mlibimage *img, mlibs32 xStart, mlibs32 yStart,
mlibs32 xPeriod, mlibs32 yPeriod);
mlibstatus mlibImageExtrema2Fp(mlibd64 *min, mlibd64 *max,
const mlibimage *img, mlibs32 xStart, mlibs32 yStart,
mlibs32 xPeriod, mlibs32 yPeriod);
DESCRIPTION
Each of the functions determines the extrema values for each
channel in an image, possibly with subsampling.
It uses the following equation:
min[i] = MIN{ img[x][y][i] }
max[i] = MAX{ img[x][y][i] }
where
x = xStart ] p*xPeriod; 0 < p < (w - xStart)/xPeriod
y = yStart ] q*yPeriod; 0 < q < (h - yStart)/yPeriod
PARAMETERS
Each of the functions takes the following arguments:
min Pointer to minimum vector, where length is the
number of channels in the image. min[i] contains
the minimum of channel i.
max Pointer to maximum vector, where length is the
number of channels in the image. max[i] contains
the maximum of channel i.
img Pointer to a source image.
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibImageExtrema2(3MLIB)
xStart Initial X sample coordinate.
yStart Initial Y sample coordinate.
xPeriod X sample rate. xPeriod > 1.
yPeriod Y sample rate. yPeriod > 1.
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
mlibImageExtremaLocations(3MLIB), mlibImageMaximum(3MLIB),
mlibImageMaximumFp(3MLIB), mlibImageMinimum(3MLIB),
mlibImageMinimumFp(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|