spatialGradientAsync function

Future<(Mat, Mat)> spatialGradientAsync(
  1. Mat src, {
  2. int ksize = 3,
  3. int borderType = BORDER_DEFAULT,
})

SpatialGradient calculates the first order image derivative in both x and y using a Sobel operator.

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

Implementation

Future<(Mat dx, Mat dy)> spatialGradientAsync(
  Mat src, {
  int ksize = 3,
  int borderType = BORDER_DEFAULT,
}) async =>
    cvRunAsync2(
      (callback) => cffi.SpatialGradient_Async(src.ref, ksize, borderType, callback),
      matCompleter2,
    );