1 | initial version |
In photography, histograms are used to analyze the distribution of pixel intensities in the image. See here or here for more information about the use of histogram in photography.
This tutorial will show you how to compute histograms in OpenCV.
If you divide the histogram intensities range in 5 regions, you could tell which region counts the greatest number of pixel occurences and determine if the image is overexposed or underexposed or normal.