How can I get the percentage of each individual color from an RGB image?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How can I get the percentage of each individual color from an RGB image?
0 Commenti
Risposta accettata
Sean de Wolski
il 3 Feb 2011
Do you mean:
I = your_RGB_image;
rgb_percent = squeeze(sum(sum(I,1),2))/sum(I(:))*100
%SCd
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!