Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

are you referring to finding the prominent color in an image and selecting between green, red or blue?

for a first step, you can get the color distribution (histogram) of your image by using calcHist docs.opencv.org/modules/imgproc/doc/histograms.html?highlight=calchist#calchist