scharr function

Mat scharr(
  1. Mat src,
  2. int ddepth,
  3. int dx,
  4. int dy, {
  5. Mat? dst,
  6. double scale = 1,
  7. double delta = 0,
  8. int borderType = BORDER_DEFAULT,
})

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.Scharr(src.ref, dst!.ref, ddepth, dx, dy, scale, delta, borderType));
  return dst;
}