Applies the non-separable 2D linear filter to an image.
Namespace: OpenCvSharp.CPlusPlus.Gpu
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void Filter2D( GpuMat src, GpuMat dst, int ddepth, Mat kernel, Nullable<Point> anchor, BorderType borderType = BorderType.Reflect101, Stream stream = null )
Parameters
- src
- Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Source image. Supports CV_8U, CV_16U and CV_32F one and four channel image. - dst
- Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Destination image. The size and the number of channels is the same as src. - ddepth
- Type: SystemInt32
Desired depth of the destination image. If it is negative, it is the same as src.depth(). It supports only the same depth as the source image depth. - kernel
- Type: OpenCvSharp.CPlusPlusMat
2D array of filter coefficients. - anchor
- Type: SystemNullablePoint
Anchor of the kernel that indicates the relative position of a filtered point within the kernel. The anchor resides within the kernel. The special default value (-1,-1) means that the anchor is at the kernel center. - borderType (Optional)
- Type: OpenCvSharpBorderType
Pixel extrapolation method. - stream (Optional)
- Type: OpenCvSharp.CPlusPlus.GpuStream
Stream for the asynchronous version.
See Also