How to convert the grayscale image into rgb image ????

4 次查看(过去 30 天)
How to convert the grayscale image into rgb image ????
  1 个评论
KSSV
KSSV 2018-1-18
You should be having colormap for this. You need to have a color data of the concerned image.

请先登录,再进行评论。

回答(2 个)

KSSV
KSSV 2018-1-18

Walter Roberson
Walter Roberson 2018-1-18
RGB_Image = Grayscale_Image(:,:,[1 1 1]);
which is the same as
RGB_Image = repmat(Grayscale_Image, 1, 1, 3);

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by