Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

image processing toolbox

Status
Not open for further replies.

Luke125

Computer
Joined
Sep 12, 2005
Messages
2
Location
PL
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??
 
might it have anything to do with the definition of ind2gray?


Description

I = ind2gray(X,map) converts the image X with colormap map to an intensity image I. ind2gray removes the hue and saturation information from the input image while retaining the luminance.

TTFN



 
I have replaced:

L1_RED=L1(:,:,1);

with:

L1_RED=L1;
L1_RED(:,:,2)=L1_RED(:,:,2)*0;
L1_RED(:,:,3)=L1_RED(:,:,3)*0;

It works properly...

I try to create a program about GIF compression- differences between BMP and GIF picture.

I'd be greatful for any conception connected with GIF compression. What could I create (a program) to show features of GIF compression
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top