Hi. I want to extract all three layers from rgb colour image.For red layer i want it is red colour and similarly for green layer i need the image in green shade. simple code is attached but it increase the size of the image which i dont want. If an input image is of small size I need the output of the same size.
I1=imread('Hello.png')I1 = I1(:,:,2); R=image(I1), colormap([zeros(256,1),[0:1/255:1]', zeros(256,1)]); figure; imshow(R,[])
Best Answer