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

 Risposta accettata

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

2 Commenti

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Images in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by