Clear Filters
Clear Filters

Error using interfileinfo and interfileread

3 views (last 30 days)
Robert
Robert on 22 May 2015
Answered: Bruno Ghini on 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.

Answers (1)

Bruno Ghini
Bruno Ghini on 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!