Professional Documents
Culture Documents
i=imread('fabric.png');
imshow(i)
i1=rgb2gray(i);
imshow(i1)
1
To extract RGB Compnent from the original image
R=i(:,:,1);
G=i(:,:,2);
B=i(:,:,3);
imshow(R)
2
imshow(G)
3
imshow(B)
4
5