Hi I am extracting the grey level features of image mentioned in this paper (part 4.5 low level features).
"We describe two low level features that are particu- larly important for photo quality assessment – contrast and brightness. Professional photos usually have higher contrast than snapshots. We measure the contrast of an image as fol- lows. First, we compute the gray level histogram Hr , Hg , and Hb for each of the red, green, and blue channels, re- spectively. Then, we compute the combined histogram H, where..."
I can't clearly understand the above part in the paper. As my understanding about grey level features, take the above image as example. Use the opencv convert the color image to grey image. as the following code:
image = cv2.imread('lenna.png') gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
and then using the following code to get the histogram with the following code:
hist = cv2.calcHist([gray], , None, , [0,255])
I want to ask, and I don't know the meaning of gray level histogram for each channel.
How to we compute the gray level histogram Hr , Hg , and Hb for each of the red, green, and blue channels?
How to compute the the contrast quality, qct mentioned in the paper?