Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Image Filtering » cvBlur

cvBlur


Smoothes image using normalized box filter.

Name Type Range Description
inSrc Image Source image.
inKWidth Integer 0 - Smoothing kernel width.
inKHeight Integer 0 - Smoothing kernel height.
inAnchor Location* Anchor point. The NIL value means that the anchor is at the kernel center.
inBorderType CvBorderType Border mode used to extrapolate pixels outside of the image.
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 here: Error Handling

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

Complexity Level

This filter is available on Basic Complexity Level.