calcBackProject function

Mat calcBackProject(
  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/3.4/d6/dc7/group__imgproc__hist.html#ga3a0af640716b456c3d14af8aee12e3ca

Implementation

Mat calcBackProject(
  VecMat src,
  VecI32 channels,
  Mat hist,
  VecF32 ranges, {
  Mat? dst,
  double scale = 1.0,
}) {
  dst ??= Mat.empty();
  cvRun(
    () => cimgproc.cv_calcBackProject(
      src.ref,
      channels.ref,
      hist.ref,
      dst!.ref,
      ranges.ref,
      scale,
      ffi.nullptr,
    ),
  );
  return dst;
}