Info

This question is closed. Reopen it to edit or answer.

image processing and histogram

1 view (last 30 days)
PK
PK on 17 Nov 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
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.

Answers (2)

Walter Roberson
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
Image Analyst on 18 Nov 2012
Edited: 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://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.

Image Analyst
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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!