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