compute1 static method
static method for computing quality
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(() => cffi.QualityBRISQUE_compute_static(img.ref, cm, cr, p));
calloc.free(cm);
calloc.free(cr);
return Scalar.fromPointer(p);
}