How to display Hyperspectral image
2 ビュー (過去 30 日間)
古いコメントを表示
I want to display Hyperspectral image in matlab. I am using the following code. the .mat file is uploaded correctly and appeared in work space
clc
clear all
close all
load Indian_pines_corrected
load Indian_pines_gt
imagesc(Indian_pines_gt)
imagesc(Indian_pines_corrected(:,:,200))
But I am getting this error
Undefined function or variable 'Indian_pines_gt'.
Error in Untitled (line 6) imagesc(Indian_pines_gt)
0 件のコメント
回答 (1 件)
Shrutika Sawant
2019 年 2 月 27 日
編集済み: Image Analyst
2019 年 2 月 27 日
Hello,
After loading , it will store the the data and groundtruth in workspace with variable name "indian_pines_corrected" and "indian_pines_gt". So use the following command and you can see the band image and groundtruth,
imagesc(indian_pines_gt)
imagesc(indian_pines_corrected(:,:,200))
1 件のコメント
Image Analyst
2019 年 2 月 27 日
Yes, good catch. MATLAB is case sensitive so indian is different than Indian.
参考
カテゴリ
Help Center および File Exchange で Hyperspectral Image Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!