Documentation

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.

analyze75info

Read metadata from header file of Analyze 7.5 data set

Syntax

info = analyze75info(filename)
info = analyze75info(___,Name,Value)

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(___,Name,Value) reads the Analyze 7.5 header file using name-value pairs to control different aspects of the operation.

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

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

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

collapse all

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.

Introduced before R2006a

Was this topic helpful?