pub fn equalize_hist(src: &[u8]) -> Vec<u8> ⓘExpand description
Port of OpenCV equalizeHist for 8-bit single-channel images.
Builds the cumulative-histogram lookup table exactly as OpenCV does: the
first occupied bin maps to 0, and the remainder is scaled by
255 / (total - hist[first]).