MATLAB Answers


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.


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

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: 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.

Answer by Image Analyst
on 18 Nov 2012

Take a look at the "color frequency image" in this link: 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.


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!