Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

image processing and histogram

Asked by PK on 17 Nov 2012

Hi, I require some help in finding dominating color in an image can u suggest some idea, i tried with histogram extraction and no idea how to find the dominant color in the histogram.

0 Comments

PK

2 Answers

Answer by Walter Roberson on 17 Nov 2012

First you need to define what differentiates one color from another. Where exactly does "red" end and "purple" begin?

1 Comment

Image Analyst on 18 Nov 2012

Here's some interesting info from a comment of mine to a different post a few days ago:

Pick your color values from one of these web sites:

http://en.wikipedia.org/wiki/List_of_colors

http://www.w3.org/TR/css3-color/

http://ivrg.epfl.ch/files/content/sites/ivrg/files/research/alindner/CIC2012/www/ColorThesaurus.html Type blue-grey (using the UK spelling of gray) into the search field. You can type any color in any language in and get the color. Or, pick a color from a color picker and find out the names in 9 or 10 different languages for that color.

Walter Roberson
Answer by Image Analyst on 18 Nov 2012

Take a look at the "color frequency image" in this link: http://www.mathworks.com/matlabcentral/fileexchange/28164-color-frequency-image You can probably adapt the code to handle different bin sizes. You question is exactly what the color frequency image is designed for. If you have any questions about how it operates, ask me - I understand the concepts in it.

0 Comments

Image Analyst

Contact us