Clear Filters
Clear Filters

How to Open the images extension .hdr and img

3 views (last 30 days)
mohd akmal masud
mohd akmal masud on 5 Feb 2022
Edited: DGM on 5 Feb 2022
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 Comment
DGM on 5 Feb 2022
Edited: DGM on 5 Feb 2022
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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!