compute1Async static method

Future<Scalar> compute1Async(
  1. String modelFile,
  2. String rangeFile,
  3. Mat img
)

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 = ccontrib.QualityBRISQUE_compute_static_async(img.ref, cm, cr, callback);
        calloc.free(cm);
        calloc.free(cr);
        return status;
      },
      scalarCompleter,
    );