how can I convert a grayscale image into RGB image??
Thanks
navneet nayan

1 件のコメント

Adam
Adam 2017 年 4 月 27 日
Map it onto a colourmap.

サインインしてコメントする。

 採用された回答

Walter Roberson
Walter Roberson 2017 年 4 月 27 日

0 投票

temp = YourGrayImage;
if isfloat(temp)
temp = im2uint8(temp);
end
ColorImage = ind2rgb(temp, TheColorMapToUse);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Modify Image Colors についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by