i want to compare some similar images to find that one, which have a balanced brighntess (not over or underexposed).
My first idea was to get the average brightness of a image.For this i take a brightness histogram. But this method produce a lot of errors. Because there could be images which have only low and high brightness
My second idea is to create a histogram which represent a gaussian distribution. But i don't know how to create a histogram with those values.
Have anybody an idea or another solution?
greetings
i found a solution. With CvHistogram* cvMakeHistHeaderForArray(int dims, int* sizes, CvHistogram* hist, float* data, float** ranges=NULL, int uniform=1) i can generate histograms with a table of values very easy.
greetings