how to convert grayscale image to rgb image

1 回表示 (過去 30 日間)
tawheed jan
tawheed jan 2013 年 11 月 1 日
コメント済み: Image Analyst 2021 年 1 月 22 日
In my problem i have taken a colored image & converted it to grayscale(double).After processing now i want the colored image back.plz tell me how to do this.

採用された回答

Image Analyst
Image Analyst 2013 年 11 月 1 日
First convert to an indexed image with uint8(). Then choose a colormap, then call ind2rgb().
  2 件のコメント
mohd akmal masud
mohd akmal masud 2021 年 1 月 22 日
hi sir, can you show the coding. let saya my coding is
B = dicomread('TRANSA001_CT025.dcm');
Image Analyst
Image Analyst 2021 年 1 月 22 日
% Convert RGB image to gray scale
grayImage = rgb2gray(B);
% Get color image "back":
% Nothing to do - you still have B (the original RGB image) so you're all set.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by