1 | initial version |
If you want to see how many pixel are for a specific green value, look in the g_hist mat.
For example, Green = 12, look at pixel
g_val = g_hist<float>(12);
Take care of one thing: the number of pixels of value p=(12,13,14)
is not the sum of
b_hist<float>(12) + g_hist<float>(13) + r_hist<float>(14)
because histograms are computed from independent values for each color!
As example, p1=(12,10,10) is computed in b_hist<float>(12)
also.