Start » Filter Reference » OpenCV » Image Filtering » cvFilter2D

cvFilter2D


Module: OpenCV

Convolves an image with the kernel.

Name Type Description
Input value
inSrc Image Source image.
Input value
inDDepth Integer* Destination image depth.
Input value
inKernel Matrix Convolution kernel, or rather a correlation kernel.
Input value
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.
Input value
inDelta Real Optional value added to the filtered pixels before storing them in dst.
Input value
inBorderType CvBorderType Pixel extrapolation method.
Output value
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.