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