Image conversion

1 view (last 30 days)
Jamuna Jayashri Mahalingam
Edited: Matt J on 25 Oct 2013
How to convert a binary matrix into RGB image?

Accepted Answer

Image Analyst
Image Analyst on 23 Feb 2012
rgbImage = uint8(cat(3, binaryImage, binaryImage, binaryImage));
  7 Comments
Image Analyst
Image Analyst on 5 Mar 2012
What was your exact line? Because I know it works since I've been doing it that way for years.
Jamuna Jayashri Mahalingam
RGB=uint8(cat(3,y,y,y));
y is the binary image

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!