calcBackProject function
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;
}