How to find out prominent color of an image?
3 views (last 30 days)
Show older comments
How do i find out the prominent color of RGB image in matlab?
Thanks
3 Comments
Walter Roberson
on 4 Apr 2014
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.)
Answers (1)
Image Analyst
on 3 Apr 2014
That's what the Color Frequency Image does. See http://www.mathworks.com/matlabcentral/fileexchange/28164-color-frequency-image
Or else you can simply get the mean RGB values. Depends on what you want.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!