Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
How can I get the percentage of each individual color from an RGB image?

Risposta accettata

Sean de Wolski
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

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center 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