×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

image processing toolbox

image processing toolbox

image processing toolbox

(OP)
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??

RE: image processing toolbox

might it have anything to do with the definition of ind2gray?


Quote:

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



RE: image processing toolbox

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources