QualityBRISQUE.create constructor

QualityBRISQUE.create(
  1. String modelFile,
  2. String rangeFile
)

Implementation

factory QualityBRISQUE.create(String modelFile, String rangeFile) {
  final p = calloc<cvg.QualityBRISQUE>();
  final cm = modelFile.toNativeUtf8().cast<ffi.Char>();
  final cr = rangeFile.toNativeUtf8().cast<ffi.Char>();
  cvRun(() => cffi.QualityBRISQUE_create(cm, cr, p));
  calloc.free(cm);
  calloc.free(cr);
  return QualityBRISQUE.fromPointer(p, false);
}