mri_to_pgm, a C code which reads a file containing MRI information in binary format, and writes a sequence of PGM graphics files corresponding to successive XY planes of data.


mri_to_pgm prefix


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


mri_to_pgm is available in a C version.

Related Data and Programs:

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

MRI_TO_ASCII, a C code which converts binary MRI information to ASCII text format.


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

PGMA_IO, a C code which can read or write ASCII PGM image files.

PPMA_IO, a C code which can read or write ASCII PPM (Portable Pixel Map) graphics files.

Source Code:

Last revised on 14 July 2019.