equalizeHist function
EqualizeHist Equalizes the histogram of a grayscale image.
For further details, please see: https:///docs.opencv.org/master/d6/dc7/group__imgproc__hist.html#ga7e54091f0c937d49bf84152a16f76d6e
Implementation
Mat equalizeHist(Mat src, {Mat? dst}) {
cvAssert(src.channels == 1, "src must be grayscale");
dst ??= Mat.empty();
cvRun(() => cimgproc.cv_equalizeHist(src.ref, dst!.ref, ffi.nullptr));
return dst;
}