Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
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. An .mgz file is a .mgh file that has been compressed with ZLib. |
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. An .mgz file is a .mgh file that has been compressed with ZLib. It is proprietary format, 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 declaring the MGH format, and examples of how a file is read and written: * attachment:mri.h - the MRI data structure defines the MGH * attachment:matrix.h - MRI data structure contains MATRIX * attachment:mri.c * attachment:mriio.c - see mri_read, mri_write routines * attachment:mri_info.c - see |
Line 10: | Line 22: |
attachment:mri.h - see MRI data structure attachment:matrix.h - MRI data structure contains MATRIX attachment:mri.c attachment:mriio.c - see mri_read attachment:mri_info.c |
[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. An .mgz file is a .mgh file that has been compressed with ZLib. It is proprietary format, 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 declaring the MGH format, and examples of how a file is read and written:
- attachment:mri.h - the MRI data structure defines the MGH
- attachment:matrix.h - MRI data structure contains MATRIX
- attachment:mri.c
- attachment:mriio.c - see mri_read, mri_write routines
- attachment:mri_info.c - see