scharr function
Scharr calculates the first x- or y- image derivative using Scharr operator.
For further details, please see: https:///docs.opencv.org/master/d4/d86/group__imgproc__filter.html#gaa13106761eedf14798f37aa2d60404c9
Implementation
Mat scharr(
Mat src,
int ddepth,
int dx,
int dy, {
Mat? dst,
double scale = 1,
double delta = 0,
int borderType = BORDER_DEFAULT,
}) {
dst ??= Mat.empty();
cvRun(() => cimgproc.cv_Scharr(src.ref, dst!.ref, ddepth, dx, dy, scale, delta, borderType, ffi.nullptr));
return dst;
}