calcHistAsync function

Future<Mat> calcHistAsync(
  1. VecMat src,
  2. VecI32 channels,
  3. Mat mask,
  4. VecI32 histSize,
  5. VecF32 ranges, {
  6. 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, {
  bool accumulate = false,
}) async =>
    cvRunAsync(
      (callback) => cffi.CalcHist_Async(
        src.ref,
        channels.ref,
        mask.ref,
        histSize.ref,
        ranges.ref,
        accumulate,
        callback,
      ),
      matCompleter,
    );