Specifications
Intel
®
Image Processing Library Reference Manual
11-6
11
DecimateBlur
Blurs and decimates an
image.
void iplDecimateBlur (IplImage*
srcImage
,
IplImage*
dstImage
, int
xDst
, int
xSrc
, int
yDst
, int
ySrc
, int
interpolate
, int
xMaskSize
, int
yMaskSize
);
srcImage
Thesourceimage.
dstImage
The resultant image.
xDst,xSrc,yDst,ySrc
Positive integers specifying the fractions
xDst/xSrc
≤ 1and
yDst/ySrc
≤ 1 - the factors
by which the x and y dimensions of the image’s
ROI are changed (similar to
iplDecimate).
interpolate
The type of interpolation to perform for
resampling. Can be one of the following:
IPL_INTER_NN Nearest neighbor.
IPL_INTER_LINEAR Linear interpolation.
IPL_INTER_CUBIC Cubic interpolation.
xMaskSize,yMaskSize
The x and y size of the blur mask.
Discussion
The function iplDecimateBlur() blurs the input image using an
xMaskSize
by
yMaskSize
mask, then decimates the blurred image by a
factor of
xDst/xSrc
in the x direction and
yDst/ySrc
in the y direction.
If mask rows and columns contain odd numbers of pixels, the mask anchor
is exactly at the center of the mask. Otherwise, the function rounds up the
center coordinates. Thus, in a 3x3 mask with top left corner at (0,0), the
anchor is at (1,2). In a 3x4 mask, the anchor would be at (1,2).
The interpolation specified by
interpolate
is used for resampling the
input image.