compute1 static method
static method for computing quality
Implementation
static (Scalar, Mat qualityMap) compute1(Mat ref, Mat cmp, {Mat? qualityMap, double maxPixelValue = 255}) {
final p = calloc<cvg.Scalar>();
qualityMap ??= Mat.empty();
cvRun(() => cffi.QualityPSNR_compute_static(ref.ref, cmp.ref, maxPixelValue, qualityMap!.ref, p));
return (Scalar.fromPointer(p), qualityMap);
}