Error using interfileinfo and interfileread
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
0 commentaires
Réponses (1)
Bruno Ghini
le 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.
0 commentaires
Voir également
Catégories
En savoir plus sur Read and Write Image Data from Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!