Histogram Equalization

Artificial Intelligence & Information Analysis

Topic: 

Histogram equalization is a method in image processing of contrast adjustment using the image’s histogram. This method usually increases the global contrast of many images, especially when the usable data of the image is represented by close contrast values. Through this adjustment, the intensities can be better distributed on the histogram. This allows for areas of lower local contrast to gain a higher contrast. Histogram equalization accomplishes this by effectively spreading out the most frequent intensity values.


Exercise: 

  1. Import OpenCV and read an image from disk.
  2. Perform histogram equalization.
  3. During the process calculate and display the initial histogram of the image and the final equalized histogram.

For the solutions to the exercises, please contact Ioanna Koroni: koroniioanna@csd.auth.gr