gray2rgb conversion
7 ビュー (過去 30 日間)
古いコメントを表示
how can I convert a grayscale image into RGB image??
Thanks
navneet nayan
採用された回答
Walter Roberson
2017 年 4 月 27 日
temp = YourGrayImage;
if isfloat(temp)
temp = im2uint8(temp);
end
ColorImage = ind2rgb(temp, TheColorMapToUse);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Modify Image Colors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!