Luke125
Computer
- Sep 12, 2005
- 2
id like to share RGB photo to 3 parts (in red, in green and in blue) and display each part. I tried to do it like that:
[L1,map1]=imread('picture.bmp');
L1=ind2gray(L1,map1);
L1_RED=L1
,:,1);
L1_GREEN=L1
,:,2);
L1_BLUE=L1
,:,3);
figure;
imshow(L1_RED);
figure;
imshow(L1_GREEN);
figure;
imshow(L1_BLUE);
but i received pictures in gray colours. What should i do to receive colour picture??
[L1,map1]=imread('picture.bmp');
L1=ind2gray(L1,map1);
L1_RED=L1
L1_GREEN=L1
L1_BLUE=L1
figure;
imshow(L1_RED);
figure;
imshow(L1_GREEN);
figure;
imshow(L1_BLUE);
but i received pictures in gray colours. What should i do to receive colour picture??