필터 지우기
필터 지우기

Error using interfileinfo and interfileread

조회 수: 3 (최근 30일)
Robert
Robert 2015년 5월 22일
답변: Bruno Ghini 2020년 1월 3일
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.

답변 (1개)

Bruno Ghini
Bruno Ghini 2020년 1월 3일
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.

카테고리

Help CenterFile Exchange에서 Read and Write Image Data from Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by