Back to Adaptive Vision Studio website

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

cvFilter2D


Convolves an image with the kernel.

Name Type Description
inSrc Image Source image.
inDDepth Integer* Destination image depth.
inKernel Matrix Convolution kernel, or rather a correlation kernel.
inAnchor Location* Anchor of the kernel that indicates the relative position of a filtered point within the kernel. The anchor should lie within the kernel. The NIL value means that the anchor is at the kernel center.
inDelta Real Optional value added to the filtered pixels before storing them in dst.
inBorderType CvBorderType Pixel extrapolation method.
outDst Image Output image.

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 Anchor must be inside the Kernel in cvFilter2D.
DomainError Input image must have pixel type different from Int8 and Int32 in cvFilter2D.
DomainError Input kernel must not be empty in cvFilter2D.

Complexity Level

This filter is available on Basic Complexity Level.