compareHist function

double compareHist(
  1. Mat hist1,
  2. Mat hist2, {
  3. int method = 0,
})

CompareHist Compares two histograms. mode: HistCompMethods For further details, please see: https:///docs.opencv.org/master/d6/dc7/group__imgproc__hist.html#gaf4190090efa5c47cb367cf97a9a519bd

Implementation

double compareHist(Mat hist1, Mat hist2, {int method = 0}) {
  final p = calloc<ffi.Double>();
  cvRun(() => cimgproc.cv_compareHist(hist1.ref, hist2.ref, method, p, ffi.nullptr));
  final rval = p.value;
  calloc.free(p);
  return rval;
}