Clear Filters
Clear Filters

I want to convert gray image to RGB image.

3 views (last 30 days)
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
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!


Find more on Modify Image Colors 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!