CvArrFilter2D Method (CvArr, CvMat) OpenCvSharp Class Library
Applies arbitrary linear filter to the image. In-place operation is supported. When the aperture is partially outside the image, the function interpolates outlier pixel values from the nearest pixels that is inside the image.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public void Filter2D(
	CvArr dst,
	CvMat kernel
)

Parameters

dst
Type: OpenCvSharpCvArr
The destination image.
kernel
Type: OpenCvSharpCvMat
Convolution kernel, single-channel floating point matrix. If you want to apply different kernels to different channels, split the image using cvSplit into separate color planes and process them individually.
See Also

Reference