MATLAB Answers

I want to convert gray image to RGB image.

1 view (last 30 days)
ChanWoo Lee
ChanWoo Lee on 9 Dec 2020
I want to convert a gray image to an RGB image while maintaining the size after resizing in the code I wrote. What should I do?

Answers (1)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi on 14 Dec 2020
Hi,
I understand that you want to convert a gray image into RGB image. The function 'ind2rgb' can be used to do so.
You can refer the following link for more info on ind2rgb function
The following links have some examples
Hope this helps!

Community Treasure Hunt

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

Start Hunting!