How to visualise Hyperspectral Image in colour?

1 回表示 (過去 30 日間)
Alexandros Polykarpou
Alexandros Polykarpou 2012 年 10 月 11 日
回答済み: Image Analyst 2017 年 11 月 15 日
I am using hyperspectral datasets from this website: http://www.spectir.com/free-data-samples/. I can visualise a picture in gray but not in colour. How can I convert the gray image to an RGB colour image?
Thanks in advance
  1 件のコメント
Yogesh Awate
Yogesh Awate 2017 年 11 月 15 日
Can someone send me the whole program?

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

回答 (2 件)

Image Analyst
Image Analyst 2012 年 10 月 11 日
Put each spectral channel into one of the color channels:
rgbImage = cat(3, spectralChannel1, , spectralChannel3, , spectralChannel8);
imshow(rgbImage);
or whatever channels you want to use.
  12 件のコメント
Alexandros Polykarpou
Alexandros Polykarpou 2012 年 10 月 12 日
I know what that is. the question is how can i plot the whole picture with colour. not just a slice.
worku jifara
worku jifara 2017 年 2 月 9 日
i think this may be helpful for you load('ref_crown3bb_reg1.mat') x=reflectances(:,:,17); figure; imagesc(x); colormap('gray');brighten(0.5); y = reflectances(:,:,25); figure; imagesc(y); colormap('gray');brighten(0.5); z=reflectances(:,:,33); figure; imagesc(z); colormap('gray');brighten(0.5); all=cat(3,x,y,z); figure; imshow(all)

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


Image Analyst
Image Analyst 2017 年 11 月 15 日
See this paper that describes a variety of ways to convert spectral bands to RGB: http://my.ece.msstate.edu/faculty/du/JSTARS-VIS.pdf

カテゴリ

Help Center および File ExchangeHyperspectral Image Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by