mediaLib Library Functions mlibImageConvKernelConvert(3MLIB)
NAME
mlibImageConvKernelConvert - convolution kernel conversion
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageConvKernelConvert(mlibs32 *ikernel, mlibs32 *iscale,
const mlibd64 *fkernel, mlibs32 m, mlibs32 n, mlibtype type);
DESCRIPTION
The mlibImageConvKernelConvert() function converts a
floating-point convolution kernel to an integer kernel with
its scaling factor suitable to be used in convolution func-
tions.
PARAMETERS
The function takes the following arguments:
ikernel Pointer to integer convolution kernel, in row
major order.
iscale Pointer to scaling factor of the integer convolu-
tion kernel.
fkernel Pointer to floating-point convolution kernel, in
row major order.
m Width of the convolution kernel. m > 1.
n Height of the convolution kernel. n > 1.
type The image type. It can be one of the following:
MLIBIT
MLIBYTE
MLIBSHORT
MLIBUSHORT
MLIBINT
RETURN VALUES
The function returns MLIBSUCES if successful. Otherwise
it returns MLIBFAILURE.
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibImageConvKernelConvert(3MLIB)
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibImageConv2x2(3MLIB), mlibImageConv2x2Fp(3MLIB),
mlibImageConv2x2Index(3MLIB), mlibImageConv3x3(3MLIB),
mlibImageConv3x3Fp(3MLIB), mlibImageConv3x3Index(3MLIB),
mlibImageConv4x4(3MLIB), mlibImageConv4x4Fp(3MLIB),
mlibImageConv4x4Index(3MLIB), mlibImageConv5x5(3MLIB),
mlibImageConv5x5Fp(3MLIB), mlibImageConv5x5Index(3MLIB),
mlibImageConv7x7(3MLIB), mlibImageConv7x7Fp(3MLIB),
mlibImageConv7x7Index(3MLIB), mlibImageConvMxN(3MLIB),
mlibImageConvMxNFp(3MLIB), mlibImageConvMxNIndex(3MLIB),
mlibImageConvolveMxN(3MLIB),
mlibImageConvolveMxNFp(3MLIB), mlibImageSConv3x3(3MLIB),
mlibImageSConv3x3Fp(3MLIB), mlibImageSConv5x5(3MLIB),
mlibImageSConv5x5Fp(3MLIB), mlibImageSConv7x7(3MLIB),
mlibImageSConv7x7Fp(3MLIB),
mlibImageSConvKernelConvert(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|