Filter löschen
Filter löschen

Error using HDRREAD: Not a Radiance File

14 Ansichten (letzte 30 Tage)
Robert
Robert am 21 Mai 2015
Kommentiert: Manpreet Kaur am 6 Aug. 2019
Hi, I have been sent PET-CT scanner data in interfile format. I have the *.hdr file and corresponding *.img file. I am trying to use hdrread to read the data into MatLab. I get the error message:
Error using hdrread>readHeader (line 61) Not a Radiance file.
Error in hdrread (line 29) fileinfo = readHeader(fid);
I get this error on 2 different sets of data from 2 different scanners. Any help would be appreciated.
  1 Kommentar
Manpreet Kaur
Manpreet Kaur am 6 Aug. 2019
I m processing .hdr file. I'm enable to read hdr format file.
Error Through
Error using hdrread>readHeader (line 63)
Not a Radiance file.
Error in hdrread (line 29)
fileinfo = readHeader(fid);
Please suggest me how to read 'D2_F22_H2_Cropped_NW_Aligned.hdr' file.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 21 Mai 2015
Take a look into the hdrread file in line 61. There you should find the criterion which let Matlab reject your file type. Perhaps there are different file formats called ".hdr"?
  1 Kommentar
Robert
Robert am 22 Mai 2015
Doh! Must have been tired yesterday. The MatLab hdrread is for a different type of file (I think I searched MatLab for *.hdr and it came up with hdrread!). I should be using interfileinfo and interfileread. Unfortunately I now have another error message which I'll post separately. Thanks.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by