calcHistAsync function

Future<Mat> calcHistAsync(
  1. VecMat src,
  2. VecI32 channels,
  3. Mat mask,
  4. VecI32 histSize,
  5. VecF32 ranges, {
  6. Mat? hist,
  7. bool accumulate = false,
})

CalcHist Calculates a histogram of a set of images

For futher details, please see: https:///docs.opencv.org/master/d6/dc7/group__imgproc__hist.html#ga6ca1876785483836f72a77ced8ea759a

Implementation

Future<Mat> calcHistAsync(
  VecMat src,
  VecI32 channels,
  Mat mask,
  VecI32 histSize,
  VecF32 ranges, {
  Mat? hist,
  bool accumulate = false,
}) {
  hist ??= Mat.empty();
  return cvRunAsync0(
    (callback) => cimgproc.cv_calcHist(
      src.ref,
      channels.ref,
      mask.ref,
      hist!.ref,
      histSize.ref,
      ranges.ref,
      accumulate,
      callback,
    ),
    (c) {
      return c.complete(hist);
    },
  );
}