Read image data from image file of Analyze 7.5 data set
X = analyze75read(filename)
X = analyze75read(info)
X = analyze75read(filename) reads
the image data from the image file of an Analyze 7.5 format data set
specified by the character vector
function returns the image data in
X. For single-frame,
X is an m-by-n array.
a data type for
X that is consistent with the data
type specified in the data set header file.
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
the image file has the file extension
X = analyze75read(info) reads
the image data from the image file specified in the metadata structure
be a valid metadata structure returned by the
Read image data from an Analyze 7.5 image file.
X = analyze75read('brainMRI');
Because Analyze 7.5 format uses radiological orientation (LAS), flip the data for correct image display in MATLAB®.
X = flip(X);
Select frames 12 to 17 and use
create an array for
Y = reshape(X(:,:,12:17),[size(X,1) size(X,2) 1 6]); montage(Y);
analyze75read with the metadata obtained
from the header file using
info = analyze75info('brainMRI.hdr'); X = analyze75read(info);
X can be
double. Complex and RGB data types are not supported.