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,
}) {
final p = dst?.ptr ?? calloc<cimgproc.Mat>();
cvRun(() => cimgproc.CalcBackProject(src.ref, channels.ref, hist.ref, p, ranges.ref, scale));
return dst ?? Mat.fromPointer(p);
}