Count color using calcHist, how exactly to read the histogram ?
Hi, I want to count colors in an image. I read many suggestion to use Histogram, so I followed instruction from OpenCV docs Histogram Calculation. But how exactly to read this histogram to get information about how many color is in there ?
can you explain some more about it ?
basically, hstograms count color occurences into bins. (and there are as many colour, as yoou gave it bins.) is that really, what you wanted ?
did you want to find out, how many unique combinations of B,G,R are present in your image ?
| can you explain some more about it ?
exactly count how many colors.
(edit) yes, unique colors. is that possible with histogram ?