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}) {
  return cvRunArena<double>((arena) {
    final p = arena<ffi.Double>();
    cvRun(() => cimgproc.CompareHist(hist1.ref, hist2.ref, method, p));
    return p.value;
  });
}