This is machine translation

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


Read metadata from header file of Analyze 7.5 data set


info = analyze75info(filename)
info = analyze75info(filename,'ByteOrder', endian)


info = analyze75info(filename) reads the header file of the Analyze 7.5 data set specified by the character vector filename. The function returns info, a structure whose fields contain information about the data set.

Analyze 7.5 is a 3-D biomedical image visualization and analysis product developed by the Biomedical Imaging Resource of the Mayo Clinic. An Analyze 7.5 data set is made of two files, a header file and an image file. The 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.

info = analyze75info(filename,'ByteOrder', endian) reads the Analyze 7.5 header file using the byte ordering specified by endian, where endian can have either of the following values:




Byte ordering is Little Endian


Byte ordering is Big Endian

If the specified endian value results in a read error, analyze75info issues a warning message and attempts to read the header file with the opposite ByteOrder format.


Read an Analyze 7.5 header file.

info = analyze75info('brainMRI.hdr');

Specify the byte ordering of the data set.

info = analyze75info('brainMRI', 'ByteOrder', 'ieee-le');

See Also

Introduced before R2006a

Was this topic helpful?