How can I get the percentage of each individual color from an RGB image?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I get the percentage of each individual color from an RGB image?
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 3 Feb. 2011
Do you mean:
I = your_RGB_image;
rgb_percent = squeeze(sum(sum(I,1),2))/sum(I(:))*100
%SCd
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!