compute1 static method

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

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