QualityPSNR.create constructor

QualityPSNR.create(
  1. Mat ref, {
  2. double maxPixelValue = 255,
})

Implementation

factory QualityPSNR.create(Mat ref, {double maxPixelValue = 255}) {
  final p = calloc<cvg.QualityPSNR>();
  cvRun(() => cffi.QualityPSNR_create(ref.ref, maxPixelValue, p));
  return QualityPSNR.fromPointer(p, false);
}