Specifications
Intel
®
Image Processing Library Reference Manual
6-2
6
Linear Filters
Linear filtering includes a simple neighborhood averaging filter, 2D
convolution operations, and a number of filters with fixed effects.
Blur
Applies simple neighborhood
averaging filter to blur the
image.
void iplBlur(IplImage*
srcImage
, IplImage*
dstImage
,
int
nCols
, int
nRows
, int
anchorX
, int
anchor
Y);
srcImage
Thesourceimage.
dstImage
The resultant image.
nCols
Number of columns in the neighborhood to use.
nRows
Number of rows in the neighborhood to use.
anchorX, anchorY
The [x, y] coordinates of the anchor cell in the
neighborhood. In this coordinate system, the top
left corner would be [0, 0] and the bottom right
corner would be [
nCols
-1,
nRows
-1]. For a 3 by
3 neighborhood, the coordinates of the geometric
center would be [1, 1]. This specification allows
the neighborhood to be skewed with respect to its
geometric center.
Discussion
The function iplBlur() sets each pixel in the output image as the average
of all the input image pixels in the neighborhood of size
nRows
by
nCols
with the anchor cell at that pixel. This has the effect of smoothing or
blurring the input image. The linear averaging filter of an image is also
called a box filter.