Filter löschen
Filter löschen

Error using interfileinfo and interfileread

3 Ansichten (letzte 30 Tage)
Robert
Robert am 22 Mai 2015
Beantwortet: Bruno Ghini am 3 Jan. 2020
I am trying to read Interfiles from a PET-CT scanner into MatLab using Interfileinfo and Interfileread. When I use Interfileinfo I get the error:
Error using interfileinfo (line 73) NEMA_2013_05_07_1x20min_delay_separate_OS3D256_2it_12MAP_R_0.8.pet.img is not a valid INTERFILE file.
Looking at (line 73) of interfileinfo the code is:
% if no separator on first non-empty line, then not in INTERFILE format
if isempty(info)
error(message('images:interfileinfo:invalidFile', filename));
However I can import and view this file as an Interfile on a different piece of software called "Amide". So it is a valid Interfile. Any help would be appreciated.

Antworten (1)

Bruno Ghini
Bruno Ghini am 3 Jan. 2020
You probably solved this after so many years.
Interfile format gives us separate files for header and image. The file you are trying to get info from is the image file (*.img), but the info is in the header file (*.hdr). That's why you are getting an error message.

Community Treasure Hunt

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

Start Hunting!

Translated by