equalizeHistAsync 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
Future<Mat> equalizeHistAsync(Mat src, {Mat? dst}) async {
cvAssert(src.channels == 1, "src must be grayscale");
dst ??= Mat.empty();
return cvRunAsync0(
(callback) => cimgproc.cv_equalizeHist(src.ref, dst!.ref, callback),
(c) {
return c.complete(dst);
},
);
}