How can convert image to rgb

2 views (last 30 days)
Good day. pls i am working a project that i need to convert image to rgb image. can someone with the codes. Iam new to matlab. Thanks
  2 Comments
Stephen23
Stephen23 on 24 Jan 2018
"i need to convert image to rgb image"
What type of image is it?
Muhammad Bayero
Muhammad Bayero on 25 Jan 2018
normal picture i suppose. i took d picture with a camera....thanks in advance

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 25 Jan 2018
Try this:
rgbImage = imread(filename);
imshow(rgbImage);
  3 Comments
Muhammad Bayero
Muhammad Bayero on 25 Jan 2018
pls How can i convert the rgb to normalised rgb?
Image Analyst
Image Analyst on 25 Jan 2018
Depends on what your definition of normalised is. Look into the im2double() and mat2gray() functions.

Sign in to comment.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!