Specifications
Image Filtering
6-11
6
ConvolveSep2D, ConvolveSep2DFP
Convolves an image with a
separable convolution kernel.
void iplConvolveSep2D (IplImage*
srcImage
,
IplImage*
dstImage
, IplConvKernel*
xKernel
,
IplConvKernel*
yKernel
);
void iplConvolveSep2DFP (IplImage*
srcImage
,
IplImage*
dstImage
, IplConvKernelFP*
xKernel
,
IplConvKernelFP*
yKernel
);
srcImage
Thesourceimage.
dstImage
The resultant image.
xKernel
The x or row kernel. Must contain only one row.
yKernel
The y or column kernel. Must contain only one column.
Discussion
The functions iplConvolveSep2D() and iplConvolveSep2DFP() are
used to convolve the input image
srcImage
with the separable kernel
specified by the row kernel
xKernel
and column kernel
yKernel
.The
functions write the convolution results to the output image
dstImage
.
Use
iplConvolveSep2DFP() only for images with 32-bit floating-point
data. For all other image data types, use
iplConvolveSep2D().
One of the kernel arguments
xKernel
or
yKernel
(but not both) can be
NULL, for example:
iplConvolveSep2DFP (src, dst, xKernel, NULL);
iplConvolveSep2DFP (src, dst, NULL, yKernel);