OpenCvSharp.Cv2.Scharr C# (CSharp) Method

Scharr() public static method

Calculates the first x- or y- image derivative using Scharr operator
public static Scharr ( InputArray src, OutputArray dst, MatType ddepth, int xorder, int yorder, double scale = 1, 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
xorder int Order of the derivative x
yorder int Order of the derivative y
scale double The optional scale factor for the computed derivative values (by default, no scaling is applie
delta double The optional delta value, added to the results prior to storing them in dst
borderType BorderTypes The pixel extrapolation method
return void
        public static void Scharr(
            InputArray src, OutputArray dst, MatType ddepth, int xorder, int yorder, 
            double scale = 1, double delta = 0, BorderTypes borderType = BorderTypes.Default)
        {
            if (src == null)
                throw new ArgumentNullException(nameof(src));
            if (dst == null)
                throw new ArgumentNullException(nameof(dst));
            src.ThrowIfDisposed();
            dst.ThrowIfNotReady();
            NativeMethods.imgproc_Scharr(src.CvPtr, dst.CvPtr, ddepth, xorder, yorder, 
                scale, delta, (int)borderType);
            GC.KeepAlive(src);
            dst.Fix();
        }
        #endregion
Cv2