how to obtain .hdr files from .mat

6 ビュー (過去 30 日間)
Mohammed Younus
Mohammed Younus 2022 年 10 月 18 日
コメント済み: Mohammed Younus 2022 年 10 月 23 日
Hello,
and in the tutorial, jasperRidge2_R198.hdr file used, I have looked for this file in the specific format and I can only find jasperRidge2_R198.mat.
how do I obtain jasperRidge2_R198.hdr file?
Do I need to convert jasperRidge2_R198.mat to jasperRidge2_R198.hdr ? If yes, how can I do it?
Thank You
  2 件のコメント
dpb
dpb 2022 年 10 月 18 日
Maybe they saved the result of creating the hypercube object from the header file as a .mat file -- see what you get if you just load it. If you're lucky you can then just carry on from there.
You can always just use
whos -file jasperRidge2_R198.mat
to see what's inside it first...
Mohammed Younus
Mohammed Younus 2022 年 10 月 23 日
Thank you

サインインしてコメントする。

採用された回答

Harsha
Harsha 2022 年 10 月 21 日
There is no need to convert ‘.mat’ file to ‘.hdr’.
Download “hyperspectral image library” from the Add-ons menu present in the environment section of the home tab.
No need to find the ‘jasperRidge2_R198.hdr’ file, just mention name in the function as shown in the example document, it should work without issues as the library location is already added to the path.
If needed ‘jasperRidge2_R198.hdr’ file can be found in the following location.
C:\ProgramData\MATLAB\SupportPackages\R2022a<your version name here>\toolbox\images\supportpackages\hyperspectral\hyperdata
The following screenshots can be used for reference
  1 件のコメント
Mohammed Younus
Mohammed Younus 2022 年 10 月 23 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by