How can I get the percentage of each individual color from an RGB image?
1 view (last 30 days)
Show older comments
How can I get the percentage of each individual color from an RGB image?
0 Comments
Accepted Answer
Sean de Wolski
on 3 Feb 2011
Do you mean:
I = your_RGB_image;
rgb_percent = squeeze(sum(sum(I,1),2))/sum(I(:))*100
%SCd
2 Comments
More Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!