computeAsync method

Future<Scalar> computeAsync(
  1. Mat cmp
)

async version of compute

Implementation

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