Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

Do you need the actual pixel coordinates or just the number of pixels?

If the latter you would probably be better off using calcHist to generate a histogram of the hue value. See example here:

http://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html

guy