Read image data from image file of Analyze 7.5 data set
X = analyze75read(filename)
X = analyze75read(info)
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
Read image data from an Analyze 7.5 file.
X = analyze75read('brainMRI');
View the data. First, because Analyze 7.5 format uses radiological orientation (LAS), flip the data for correct image display in MATLAB.
X = flip(X);
Then, reshape the data to create an array that can be displayed using
montage. Select frames 12 to 17.
Y = reshape(X(:,:,12:17),[size(X,1) size(X,2) 1 6]); montage(Y);
Read image data from an Analyze 7.5 data set, using the structure returned by
analyze75info to specify the data set. First, use
analyze75info to create the info structure.
info = analyze75info('brainMRI');
analyze75read to read image data from the data set, specifying the info structure returned by
X = analyze75read(info);
filename— Name of Analyze 7.5 data set
Name of Analyze 7.5 data set, specified as a character vector. You don't need to specify a file extension.
info = analyze75info(‘brainMRI');
info— Information about Analyze 7.5 data set
Information about the Analyze 7.5 data set, specified as a structure
returned by the
X— Image data from Analyze 7.5 data set
Image data from Analyze 7.5 data set, returned as an array.
a data type for
X that is consistent with the data
type specified in the data set header file. Complex and RGB data types
are not supported. For single-frame, grayscale images,
an m-by-n array.