How can I get the percentage of each individual color from an RGB image?

 Réponse acceptée

Do you mean:
I = your_RGB_image;
rgb_percent = squeeze(sum(sum(I,1),2))/sum(I(:))*100
%SCd

2 commentaires

thank you this will help me for my project
thanks Sean de Wolski it is really helpful

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Modify Image Colors dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by