mlib_ImageSConvKernelConvemediaLib)Library mlib_ImageSConvKernelConvert(3MLIB)NAMEmlib_ImageSConvKernelConvert - kernel conversion for separable convolu‐
tion
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageSConvKernelConvert(mlib_s32 *ihkernel,
mlib_s32 *ivkernel, mlib_s32 *iscale, const mlib_d64 *fhkernel,
const mlib_d64 *fvkernel, mlib_s32 m, mlib_s32 n, mlib_type type);
DESCRIPTION
The mlib_ImageSConvKernelConvert() function converts a floating-point
separable convolution kernel to an integer kernel with its scaling fac‐
tor, which is suitable to be used in separable convolution functions.
PARAMETERS
The function takes the following arguments:
ihkernel Pointer to integer horizontal kernel.
ivkernel Pointer to integer vertical kernel.
iscale Scaling factor of the integer convolution kernel.
fhkernel Pointer to floating-point horizontal kernel.
fvkernel Pointer to floating-point vertical kernel.
m Width of the convolution kernel. m must be an odd number
larger than 1.
n Height of the convolution kernel. n must be an odd number
larger than 1.
type The image type.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns
MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Interface Stability │Committed │
├─────────────────────────────┼─────────────────────────────┤
│MT-Level │MT-Safe │
└─────────────────────────────┴─────────────────────────────┘
SEE ALSOmlib_ImageSConv3x3(3MLIB), mlib_ImageSConv3x3_Fp(3MLIB),
mlib_ImageSConv5x5(3MLIB), mlib_ImageSConv5x5_Fp(3MLIB),
mlib_ImageSConv7x7(3MLIB), mlib_ImageSConv7x7_Fp(3MLIB), mlib_ImageCon‐
vKernelConvert(3MLIB), attributes(5)SunOS 5.10 2 Mar 200mlib_ImageSConvKernelConvert(3MLIB)