필터 지우기
필터 지우기

How to display Hyperspectral image

조회 수: 2 (최근 30일)
mahmood hassan
mahmood hassan 2018년 6월 12일
댓글: Image Analyst 2019년 2월 27일
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)

답변 (1개)

Shrutika Sawant
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
Image Analyst 2019년 2월 27일
Yes, good catch. MATLAB is case sensitive so indian is different than Indian.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Hyperspectral Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by