How can I get the percentage of each individual color from an RGB image?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I get the percentage of each individual color from an RGB image?
0 commentaires
Réponse acceptée
Sean de Wolski
le 3 Fév 2011
Do you mean:
I = your_RGB_image;
rgb_percent = squeeze(sum(sum(I,1),2))/sum(I(:))*100
%SCd
2 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!