This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Read images in Interfile format


A = interfileread(filename)
A = interfileread(filename, window)


A = interfileread(filename) reads the images in the first energy window of filename into A, where A is an M-by-N array for a single image and an M-by-N-by-P array for multiple images. The file must be in the current directory or in a directory on the MATLAB® path.

A = interfileread(filename, window) reads the images in the energy window specified by window of filename into A.

The images in the energy window must be of the same size.

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. For more information about this file format, visit the Interfile Archive, maintained by the Department of Medical Physics and Bioengineering, University College, London, UK.


Read image data from an Interfile file.

img = interfileread('MyFile.hdr');

Introduced before R2006a

Was this topic helpful?