Start » Filter Reference » OpenCV » Image Filtering » cvBlur

cvBlur


Module: OpenCV

Smoothes image using normalized box filter.

Name Type Range Description
Input value
inSrc Image Source image.
Input value
inKWidth Integer 1 - Smoothing kernel width.
Input value
inKHeight Integer 1 - Smoothing kernel height.
Input value
inAnchor Location* Anchor point. The NIL value means that the anchor is at the kernel center.
Input value
inBorderType CvBorderType Border mode used to extrapolate pixels outside of the image.
Output value
outDst Image Output image.

Description

The operation smooths inImage with matrix of size inKWidth x inKHeight with all elements equal 1/(inKWidth x inKHeight).

Examples

cvBlur performed on sample image with inKWidth = 5, inKHeight = 5, inBorderType = BORDER_REPLICATE.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Border type can be BORDER_* except BORDER_TRANSPARENT and BORDER_ISOLATED in cvBlur.
DomainError Input image must have pixel type different from Int8 and Int32 in cvBlur.

Complexity Level

This filter is available on Basic Complexity Level.