필터 지우기
필터 지우기

How to open indian_pines.mat

조회 수: 10 (최근 30일)
gheorghe gardu
gheorghe gardu 2017년 6월 16일
편집: Walter Roberson 2017년 11월 21일
I would like to ask how to open Indian_pines hyperspectral image? I have used the below code.
load Indian_pines;
I=indian_pines;
I=multibandread('indian_pines',[145,145,220],'uint8=>uint8', 128,'ieee-le',{'Band','Direct',[4 3 2]});
I have a lot of erros:
Error using fopen
Invalid machine format.
Error in multibandread>parseInputs (line 309)
fid = fopen(filename,'r',byteOrder);
Error in multibandread (line 112)
info = parseInputs(filename, dims,...

답변 (1개)

John D'Errico
John D'Errico 2017년 6월 16일
indian_pines.mat is a .mat file. You use load to read it in.
Once you have read it in, there is NO reason to need to read it in again!!!!! multibandread is not used here, because you just read it in!
  댓글 수: 1
gheorghe gardu
gheorghe gardu 2017년 6월 16일
Dear Sir, You are right, I would like to use multibandread. Then I would like to convert to RGB and then to make SVM classification, if this would be possible.

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

카테고리

Help CenterFile Exchange에서 Display Point Clouds에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by