compute1Async static method
async version of compute1
Implementation
static Future<Scalar> compute1Async(String modelFile, String rangeFile, Mat img) => cvRunAsync<Scalar>(
(callback) {
final cm = modelFile.toNativeUtf8().cast<ffi.Char>();
final cr = rangeFile.toNativeUtf8().cast<ffi.Char>();
final status = cffi.QualityBRISQUE_compute_static_async(img.ref, cm, cr, callback);
calloc.free(cm);
calloc.free(cr);
return status;
},
scalarCompleter,
);