compute1Async static method
async version of compute1
Implementation
static Future<(Scalar, Mat qualityMap)> compute1Async(
Mat img,
Mat cmp, {
Mat? qualityMap,
}) async {
final p = calloc<cvg.Scalar>();
qualityMap ??= Mat.empty();
return cvRunAsync0(
(callback) =>
ccontrib.cv_quality_QualitySSIM_compute_static(img.ref, cmp.ref, qualityMap!.ref, p, callback),
(c) {
return c.complete((Scalar.fromPointer(p), qualityMap!));
});
}