solveAsync function
Solve solves one or more linear systems or least-squares problems.
For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga12b43690dbd31fed96f213eefead2373
Implementation
Future<(bool ret, Mat dst)> solveAsync(
InputArray src1,
InputArray src2, {
int flags = DECOMP_LU,
}) async =>
cvRunAsync2((callback) => cffi.core_Solve_Async(src1.ref, src2.ref, flags, callback), (c, p, p1) {
final rval = p.cast<ffi.Bool>().value;
calloc.free(p);
c.complete((rval, Mat.fromPointer(p1.cast<cvg.Mat>())));
});