calcHist function
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
Mat calcHist(
VecMat src,
VecI32 channels,
Mat mask,
VecI32 histSize,
VecF32 ranges, {
Mat? hist,
bool accumulate = false,
}) {
hist ??= Mat.empty();
cvRun(
() => cimgproc.cv_calcHist(
src.ref,
channels.ref,
mask.ref,
hist!.ref,
histSize.ref,
ranges.ref,
accumulate,
ffi.nullptr,
),
);
return hist;
}