MRI Data => PGM Image File Sequence

MRI_TO_PGM is a C program 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 program which converts translated ASCII text back to binary format.

MRI_TO_ASCII, a C program 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 library which can read or write ASCII PGM image files.

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

REGION, a 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.