gray2rgb conversion

7 ビュー (過去 30 日間)
NAVNEET NAYAN
NAVNEET NAYAN 2017 年 4 月 27 日
回答済み: Walter Roberson 2017 年 4 月 27 日
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 日
temp = YourGrayImage;
if isfloat(temp)
temp = im2uint8(temp);
end
ColorImage = ind2rgb(temp, TheColorMapToUse);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by