フィルターのクリア

Grayimage back to green

1 回表示 (過去 30 日間)
Jane
Jane 2013 年 12 月 16 日
コメント済み: Jane 2013 年 12 月 16 日
Hello, how can I convert this grayimage back to an rgb with green fluorescence?
<<
>>

採用された回答

Image Analyst
Image Analyst 2013 年 12 月 16 日
編集済み: Image Analyst 2013 年 12 月 16 日
blackImage = zeros(size(grayImage), 'uint8');
rgbImage = cat(3, blackImage, grayImage, blackImage);
Or you can use ind2rgb():
cmap = [zeros(256,1), (0:255)', zeros(256,1)]
rgbImage = uint8(ind2rgb(grayImage, cmap));
  1 件のコメント
Jane
Jane 2013 年 12 月 16 日
thanks!

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

その他の回答 (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