computeAsync method

Future<Scalar> computeAsync(
  1. Mat cmpImgs
)

async version of compute

Implementation

Future<Scalar> computeAsync(Mat cmpImgs) async {
  final p = calloc<cvg.Scalar>();
  return cvRunAsync0((callback) => ccontrib.cv_quality_QualityMSE_compute(ref, cmpImgs.ref, p, callback),
      (c) {
    return c.complete(Scalar.fromPointer(p));
  });
}