calcBackProjectAsync function

Future<Mat> calcBackProjectAsync(
  1. VecMat src,
  2. VecI32 channels,
  3. Mat hist,
  4. VecF32 ranges, {
  5. Mat? dst,
  6. double scale = 1.0,
})

CalcBackProject calculates the back projection of a histogram.

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

Implementation

Future<Mat> calcBackProjectAsync(
  VecMat src,
  VecI32 channels,
  Mat hist,
  VecF32 ranges, {
  Mat? dst,
  double scale = 1.0,
}) {
  dst ??= Mat.empty();
  return cvRunAsync0(
    (callback) =>
        cimgproc.cv_calcBackProject(src.ref, channels.ref, hist.ref, dst!.ref, ranges.ref, scale, callback),
    (c) {
      return c.complete(dst);
    },
  );
}