How extract contrast level of a photo - opencv
Contrast is usually understood as intensity contrast and can be computed on the Luminance component (Y). It is a measure of spread of the histogram, such as the standard deviation.
I need to return the (average) contrast value of an image.
Is this possible and if so, please show how?
More than just the code, (obviously the code is welcome), in what color space should I work? Is HSV appropriate or best? Can the contrast value of a single pixel be computed?