Conversion of MRI data to Text Format

MRI_TO_ASCII is a C program which reads a file containing MRI information in binary format, and writes an equivalent ASCII text file.

Usually, the ASCII data is created so that it can be modified in some way; if it is necessary to convert the modified data back to the MRI format, the ascii_to_mri command can be used.


mri_to_ascii prefix


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


MRI_TO_ASCII is available in a C version.

Related Data and Programs:

ASCII_TO_MRI, a C program which converts translated ASCII text back to binary format.

I2_BINARY_TO_ASCII a C++ program which converts a file of short int (I2) data from binary to ASCII format.

MRI_TO_PGM, a C program which converts binary MRI information to a sequence of PGM graphics files.

PGH_MRI, a data directory which contains examples of PGH MRI files, a format for storing brain scan data gathered by magnetic resonance imaging;

REGION, ia FORTRAN90 library which reads an ASCII MRI file and groups the voxels into regions.

Source Code:

Examples and Tests:

ROI is a set of MRI data, which comes as separate header and data files.

You can go up one level to the C source codes.

Last revised on 24 December 2010.