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