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