How to visualise Hyperspectral Image in colour?

16 views (last 30 days)
I am using hyperspectral datasets from this website: 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

Answers (2)

Image Analyst
Image Analyst on 11 Oct 2012
Put each spectral channel into one of the color channels:
rgbImage = cat(3, spectralChannel1, , spectralChannel3, , spectralChannel8);
or whatever channels you want to use.
worku jifara
worku jifara on 9 Feb 2017
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)

Sign in to comment.

Image Analyst
Image Analyst on 15 Nov 2017
See this paper that describes a variety of ways to convert spectral bands to RGB:

Community Treasure Hunt

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

Start Hunting!