Enhancing the image contrast
Now that you understand what a histogram is and how to calculate it, it is time to look at one of the most widely used image enhancing techniques: the histogram equalization. The histogram equalization technique is used to enhance the image contrast, that is, the difference between the minimum and maximum intensity values in order to strengthen image details that could be washed out.
Understanding histogram equalization
From an abstract point of view, what the histogram equalization does is it finds a function that takes the image's original histogram and transforms it to a stretched histogram with a uniform distribution of the image intensity values, thus enhancing the image contrast.
In practice, histogram equalization ...
Get OpenCV Android Programming By Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.