computeAsync static method

Future<(Mat, Mat, Mat)> computeAsync(
  1. Mat src, {
  2. Mat? w,
  3. Mat? u,
  4. Mat? vt,
  5. int flags = 0,
})

async version of compute

Implementation

static Future<(Mat w, Mat u, Mat vt)> computeAsync(
  Mat src, {
  Mat? w,
  Mat? u,
  Mat? vt,
  int flags = 0,
}) async {
  w ??= Mat.empty();
  u ??= Mat.empty();
  vt ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccore.cv_SVD_Compute(src.ref, w!.ref, u!.ref, vt!.ref, flags, callback),
    (c) => c.complete((w!, u!, vt!)),
  );
}