compute1 static method

(Scalar, Mat) compute1(
  1. Mat ref,
  2. Mat cmp, {
  3. Mat? qualityMap,
  4. double maxPixelValue = 255,
})

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);
}