How to Open the images extension .hdr and img

조회 수: 2(최근 30일)
mohd akmal masud
mohd akmal masud 2022년 2월 5일
편집: DGM 2022년 2월 5일
Hi Everyone,
These two file is output from my Monte Carlo simulation. as attached.
which is reconstruct the data to an Interfile ect_it2.hdr and the data file. ect_it2.img. The data format for the images will be 32-bit floating
Anyone know how to open it using Matlab??
  댓글 수: 1
DGM 2022년 2월 5일
You should be able to use interfileinfo() and interfileread(), but for some reason, neither file can be read. interfileinfo() was throwing errors until I fixed a couple small things in the header. (see attached file; i renamed it as .txt so it could be uploaded)
I still can't get interfileread() to read the file. It's complaining about all sorts of things. At this point, I'm trying to debug the header file for a format I'm not familiar with. Maybe someone who is familiar with these files and tools can be more help.
EDIT: As far as I understand it, there are fields missing that are required. From the documentation here:
!process status := Reconstructed Acquired|Reconstructed
;used below in conditional- MUST be defined
And as far as I understand it, both of those options also imply other fields that are also missing. I don't know if I know enough to figure out what they should be.

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


Community Treasure Hunt

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

Start Hunting!

Translated by