compute1 static method

Scalar compute1(
  1. String modelFile,
  2. String rangeFile,
  3. Mat img
)

Implementation

static Scalar compute1(String modelFile, String rangeFile, Mat img) {
  final p = calloc<cvg.Scalar>();
  final cm = modelFile.toNativeUtf8().cast<ffi.Char>();
  final cr = rangeFile.toNativeUtf8().cast<ffi.Char>();
  cvRun(() => ccontrib.cv_quality_QualityBRISQUE_compute_static(img.ref, cm, cr, p, ffi.nullptr));
  calloc.free(cm);
  calloc.free(cr);
  return Scalar.fromPointer(p);
}