solve 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
(bool ret, Mat dst) solve(
InputArray src1,
InputArray src2, {
OutputArray? dst,
int flags = DECOMP_LU,
}) {
dst ??= Mat.empty();
final rval = cvRunArena<bool>((arena) {
final p = arena<ffi.Bool>();
cvRun(() => cffi.Mat_Solve(src1.ref, src2.ref, dst!.ref, flags, p));
return p.value;
});
return (rval, dst);
}