MATLAB: How to code rbg colour intensity of an image????

colourimage processingImage Processing Toolboxrgb

question: how to work out rgb color intensity of an image?
i have used histogram to show this, however i need an alternative way to show which color has high/low intensity in the image used. is there way to use image pixel/mean/average of each color to code this in matlab? HELP

Best Answer

you can extract all the three color planes using:
R = YourImage(:,:,1); % Red color plane
G = YourImage(:,:,2); % Green color plane
B = YourImage(:,:,3); % Blue color plane
Related Question