wap to separate Individual Component of Colour images matlab program
clear all;
close all;
i=imread('R:\basweshwar.jpg');
Red=i(:,:,1);
Green=i(:,:,2);
Blue=i(:,:,3);
subplot(2,2,1);
imshow(i);
title('rgb');
subplot(2,2,2);
imshow(Red);
title('Red');
subplot(2,2,3);
imshow(Green);
title('Green');
subplot(2,2,4);
imshow(Blue);
title('Blue');
O/p