compareHistAsync function
CompareHist Compares two histograms. mode: HistCompMethods For further details, please see: https:///docs.opencv.org/master/d6/dc7/group__imgproc__hist.html#gaf4190090efa5c47cb367cf97a9a519bd
Implementation
Future<double> compareHistAsync(Mat hist1, Mat hist2, {int method = 0}) async {
final p = calloc<ffi.Double>();
return cvRunAsync0(
(callback) => cimgproc.cv_compareHist(hist1.ref, hist2.ref, method, p, callback),
(c) {
final rval = p.value;
calloc.free(p);
return c.complete(rval);
},
);
}