equalizeHist function

Mat equalizeHist(
  1. Mat src, {
  2. Mat? dst,
})

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(() => cffi.EqualizeHist(src.ref, dst!.ref));
  return dst;
}