Image reading and processing
1 view (last 30 days)
Show older comments
Usha Silwal on 11 Sep 2019
Answered: Sourav Bairagya on 16 Sep 2019
How do I generate just the red channel, from the colourful image that I have attached below?
Sourav Bairagya on 16 Sep 2019
After reading the image properly, you can separate the channels using this code segment.
a_red=a(:,:,1); %RED channel
a_green=a(:,:,2); %GREEN channel
a_blue=a(:,:,3); %BLUE channel
Now, you can also save each channel as separate image using ‘imwrite’ function. Hope this will help.
More Answers (0)
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!