Main Content


Read images in Interfile format


I = interfileread(filename) reads the images in the first energy window of the Interfile image file specified by filename.

The Interfile file format was developed for the exchange of nuclear medicine data. In Interfile 3.3, metadata is stored in a header file, separate from the image data. The two files have the same name with different file extensions. The header file has the file extension .hdr and the image file has the file extension .img.

I = interfileread(filename,window) reads the Interfile image data in the energy window specified by window.

Input Arguments

collapse all

Name of Interfile image file, specified as a character vector or string scalar. The file must be in the current directory or in a directory on the MATLAB® path.

Data Types: char | string

Energy window, specified as a numeric scalar. The images in the energy window must have the same size.

Output Arguments

collapse all

Interfile image, returned as a 2-D numeric matrix for a single image or a 3-D numeric array for multiple images.


[1] Todd-Pokropek, A, Cradduck, T.D., and Deconinck, F., A File Format for the Exchange of Nuclear Medicine Image Data: a specification of Interfile Version 3.3. Nucl Med Commun 13(9): 673-99, 1992.

Version History

Introduced before R2006a