Conversion of MRI data from Text to Binary Format

ASCII_TO_MRI is a C program which reads a file containing MRI information in ASCII text format, and restores it to its original binary format.

Usually, the ASCII data was created by the program mri_to_ascii, after which it may have been modified in some way, and now needs to be rewritten into the MRI format.


ascii_to_mri prefix


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


ASCII_TO_MRI is available in a C version.

Related Data and Programs:

MRI_TO_ASCII, a C program which converts binary MRI information to ASCII text 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;

Source Code:

Examples and Tests:

ROI is a set of data which was processed by the command ascii_to_mri roi:

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

Last revised on 24 December 2010.