Error using interfileinfo and interfileread
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Bruno Ghini
el 3 de En. de 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 comentarios
Ver también
Categorías
Más información sobre Read and Write Image Data from Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!