I am trying to develop an application which will detect the color of the face once an image is provided. I was able to find out the face detection algorithm from OpenCV and inte
The histogram represents the amount of pixels of a given color which are in the image.
For example, lets say you have this 3x3 image:
3 4 3 1 1 1 2 2 1
The histogram would be: count: 4 2 2 1 color: 1 2 3 4
from this you would have that the color which is found most is the color 1. It probably also would make sense to sum up very similar color.
For example use count(2) = sum(hist(1), hist(2), hist(3)); (being hist the number of pixels in that color)