MATLAB: How to get the percentage of each individual color from an RGB image

color

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

Best Answer

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