OpenCvSharp.Cv2.SepFilter2D C# (CSharp) Method

SepFilter2D() public static method

Applies separable linear filter to an image
public static SepFilter2D ( InputArray src, OutputArray dst, MatType ddepth, InputArray kernelX, InputArray kernelY, Point anchor = null, double delta, BorderTypes borderType = BorderTypes.Default ) : void
src InputArray The source image
dst OutputArray The destination image; will have the same size and the same number of channels as src
ddepth MatType The destination image depth
kernelX InputArray The coefficients for filtering each row
kernelY InputArray The coefficients for filtering each column
anchor Point The anchor position within the kernel; The default value (-1, 1) means that the anchor is at the kernel center
delta double The value added to the filtered results before storing them
borderType BorderTypes The pixel extrapolation method
return void
        public static void SepFilter2D(
            InputArray src, OutputArray dst, MatType ddepth, InputArray kernelX, InputArray kernelY,
            Point? anchor = null, double delta = 0, 
            BorderTypes borderType = BorderTypes.Default)
        {
            if (src == null)
                throw new ArgumentNullException(nameof(src));
            if (dst == null)
                throw new ArgumentNullException(nameof(dst));
            if (kernelX == null)
                throw new ArgumentNullException(nameof(kernelX));
            if (kernelY == null)
                throw new ArgumentNullException(nameof(kernelY));
            src.ThrowIfDisposed();
            dst.ThrowIfNotReady();
            kernelX.ThrowIfDisposed();
            kernelY.ThrowIfDisposed();
            Point anchor0 = anchor.GetValueOrDefault(new Point(-1, -1));
            NativeMethods.imgproc_sepFilter2D(src.CvPtr, dst.CvPtr, ddepth, 
                kernelX.CvPtr, kernelY.CvPtr, anchor0, delta, (int)borderType);
            GC.KeepAlive(src);
            dst.Fix();
        }
        #endregion
Cv2