Main Content

analyze75info

Read metadata from header file of Analyze 7.5 data set

Description

example

info = analyze75info(filename) reads the header file of the Analyze 7.5 data set specified by 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',byteOrder) reads the Analyze 7.5 header file with Big Endian or Little Endian byte ordering.

Examples

collapse all

Get information about an Analyze 7.5 data set. An Analyze 7.5 data set is made up of two files: a header file with the file extension .hdr and an image file with the file extension .img. You don't need to specify a file extension when calling analyze75info.

info = analyze75info('brainMRI');

Get information about an Analyze 7.5 data set, this time specifying the byte ordering of the data set. If you specify the wrong byte order, analyze75info attempts to read the file with the other supported byte order.

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

Input Arguments

collapse all

Name of Analyze 7.5 data set, specified as a string or character vector. You don’t need to specify a file extension.

Example: info = analyze75info('brainMRI');

Data Types: char | string

Endianness of the data, specified as one of the strings or character vectors in the following table. If the specified value results in a read error, analyze75info issues a warning message and attempts to read the header file with the opposite ByteOrder format.

Value

Meaning

'ieee-le'

Byte ordering is Little Endian

'ieee-be'

Byte ordering is Big Endian

Data Types: char | string

Output Arguments

collapse all

Information about Analyze 7.5 data set, returned as a structure.

Version History

Introduced before R2006a