calcHist function

Mat calcHist(
  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

Mat calcHist(
  VecMat src,
  VecI32 channels,
  Mat mask,
  VecI32 histSize,
  VecF32 ranges, {
  Mat? hist,
  bool accumulate = false,
}) {
  hist ??= Mat.empty();
  cvRun(
    () => cffi.CalcHist(
      src.ref,
      channels.ref,
      mask.ref,
      hist!.ref,
      histSize.ref,
      ranges.ref,
      accumulate,
    ),
  );

  return hist;
}