How to read hyperspectral data without wavelenth data?

조회 수: 3 (최근 30일)
Beata Szabo-Takacs
Beata Szabo-Takacs 2021년 6월 10일
댓글: Beata Szabo-Takacs 2021년 6월 10일
Dear All,
I have some hyperspectral data was produced by company Itres. Some temperature data is calculated from the average of all the spectral bands hence they do not have wavelength info and I cannot read them with
hypercube
function. Could someone suggest me a solution to read these data?
  댓글 수: 2
Subhadeep Koley
Subhadeep Koley 2021년 6월 10일
@Beata Szabo-Takacs Which file format is your hyperspectral data?
Beata Szabo-Takacs
Beata Szabo-Takacs 2021년 6월 10일
My hyperspectral data format is ".dat".

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

채택된 답변

Subhadeep Koley
Subhadeep Koley 2021년 6월 10일
편집: Subhadeep Koley 2021년 6월 10일
If you know the height, width, and number of spectral bands of your data, you can try using multibandread(_).
However, in order to use multibandread(_) apart from height, width, bands, you'll also need precision, header offset, interleave value and byte order of your data.
Below is one example, you can tweak these parameters to check if that works for you.
% Specify the parameters
precision = 'double';
headerOffset = 0;
interleave = 'bsq';
byteOrder = 'ieee-le';
height = 100;
width = 100;
bands = 256;
% Read the data
dataCube = multibandread('yourFile.dat', [height, width, bands], precision, headerOffset, interleave, byteOrder);
  댓글 수: 1
Beata Szabo-Takacs
Beata Szabo-Takacs 2021년 6월 10일
Thank you Subhadeep for your help! I modified the specific parameters to
% Specify the parameters
precision = 'float';
headerOffset = 0;
interleave = 'bsq';
byteOrder = 'ieee-le';
height = 1513;
width = 1393;
bands = 1;
and it works with multibandread function as you suggested.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by