how to find the mean colour
6 views (last 30 days)
Show older comments
I have a image which consists of water ,green land and roads,I want to find mean of each colour say blue region ,green region etc
kindly help
2 Comments
Answers (1)
Image Analyst
on 18 May 2013
First you have to classify the image into the 3 categories. Then for each category, you have to mask the original image and measure the mean for pixels in that category. See my File Exchange for color classification demos: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
3 Comments
Image Analyst
on 18 May 2013
You can use those to classify images into a limited number of colors. Or try rgb2ind() or kmeans().
See Also
Categories
Find more on Image Segmentation and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!