sobelAsync function
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
Future<Mat> sobelAsync(
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();
return cvRunAsync0(
(callback) =>
cimgproc.cv_Sobel(src.ref, dst!.ref, ddepth, dx, dy, ksize, scale, delta, borderType, callback),
(c) {
return c.complete(dst);
},
);
}