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 string 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.
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');