Histogram equalization is an algorithm that changes the distribution of brightness levels in an image
so that the brightness levels occur at approximately the same frequency. For images with a finite number of pixels, this goal can only be approached. Equalization allows hard-to-detect
details in an overall high-contrast image to be highlighted with
low contrast.
Preview
Example
Original image Original image histogram
Image after equalization Image histogram
after equalization