How to find out prominent color of an image?

How do i find out the prominent color of RGB image in matlab?
Thanks

3 Comments

First you need to define the boundaries between colours. Where does "red" end and "umber" start, for example?
Once you are able to classify each RGB triple according to its colour, then you can histogram.
What is the correct procedure to classify similar images with different colors?so that i can get classes with different colored images
By identifying the prominent colors?
It is not obvious to me that identifying the prominent colors will be useful for the task of classifying similar images with different colors. If you have a scene with a green car on an orange road, and a second scene with an orange car on a purple road, then you do not care about the fact that the first car is green and the second is orange, and you do not care about the fact that the road color in the first image is the same as the car color in the second image: what you care about is the there is a car-like object on a road-like object. What you would care about is therefore some way of determining the boundary between regions of different "color" so that you can find the edges of areas in a way that does not depend on exactly which color is being used but can still take advantage of the color variations within any one area (which simply converting to grayscale will not necessarily handle.)

Sign in to comment.

Answers (1)

Or else you can simply get the mean RGB values. Depends on what you want.

Asked:

on 3 Apr 2014

Commented:

on 4 Apr 2014

Community Treasure Hunt

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

Start Hunting!