Histogram equalization is the process of modifying the intensities of the image pixels to enhance the image's contrast. The human eye likes contrast! This is the reason why almost all camera systems use histogram equalization to make images look nice.
Histogram equalization
Getting ready
The interesting thing is that the histogram equalization process is different for grayscale and color images. There's a catch when dealing with color images, and we'll see it in this recipe. Let's see how to do it.
How to do it...
Let's see how we can perform...