[wiki:FreeSurferWiki top] | [wiki:FileFormats previous]

The MGH/MGZ Volume Format

WORK IN PROGRESS

The .mgh file format is used to store high-resolution structural data and other data which are to be overlaid on the high-resolution structural volume. A .mgz file is a .mgh file that has been compressed with ZLib.

The MGH format is proprietary, defined by the NMR Center (at Massachusetts General Hospital). Short of having a formal specification of this format, the next best thing is a snapshot of the C code showing how a .mgh or .mgz file is read and written: