As promised, here is the second half of my histogram code project. In this project, I’ll show you how to stretch a histogram, equalize individual channels, and – most useful of all – equalize an image’s overall luminance.
Today’s project demonstrates how to quickly and efficiently generate an image histogram. Histograms are invaluable for understanding and implementing a multitude of image processing techniques – including brightness, contrast, levels, curves, equalizing, and more – so it’s worth taking some time to experiment with them. As always, DIB sections are used to generate and render the histograms in real-time…