sobel function

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

Sobel calculates the first, second, third, or mixed image derivatives using an extended Sobel operator

For further details, please see: https:///docs.opencv.org/master/d4/d86/group__imgproc__filter.html#gacea54f142e81b6758cb6f375ce782c8d

Implementation

Mat sobel(
  Mat src,
  int ddepth,
  int dx,
  int dy, {
  Mat? dst,
  int ksize = 3,
  double scale = 1,
  double delta = 0,
  int borderType = BORDER_DEFAULT,
}) {
  dst ??= Mat.empty();
  cvRun(() => cimgproc.Sobel(src.ref, dst!.ref, ddepth, dx, dy, ksize, scale, delta, borderType));
  return dst;
}