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(() => ccontrib.cv_quality_QualityBRISQUE_create(cm, cr, p, ffi.nullptr));
  calloc.free(cm);
  calloc.free(cr);
  return QualityBRISQUE.fromPointer(p);
}