Volume I/O, voxel geometry and slice resampling for structural MRI data inside mne-cpp. More...
Classes | |
| class | MriCorFifIO |
| Stateless serialiser that turns an MriVolData into a FIFF MRI set (COR.fif). More... | |
| class | MriCorIO |
| Stateless reader for the FreeSurfer COR-NNN directory layout. More... | |
| class | MriMghIO |
| Stateless decoder for FreeSurfer MGH and MGZ volume containers. More... | |
| class | MriNiftiIO |
Stateless decoder for NIfTI-1 single-file volumes (.nii and .nii.gz). More... | |
| struct | MriSliceImage |
| Single 2D MRI cross-section produced by MriSlicer (pixel buffer + RAS metadata). More... | |
| class | MriSlicer |
| Orthogonal-plane resampler (axial / coronal / sagittal) from MriVolData to MriSliceImage. More... | |
| struct | MriSlice |
| Single 2D MRI slice (pixels + slice→RAS transform) used as the volume's storage unit. More... | |
| class | MriVolData |
| Format-agnostic 3D MRI volume: header geometry, voxel buffer (as a vector of MriSlice), scan parameters and provenance. More... | |
Enumerations | |
| enum class | SliceOrientation { Axial , Coronal , Sagittal } |
Functions | |
| const char * | buildDateTime () |
| const char * | buildHash () |
| const char * | buildHashLong () |
Variables | |
MGH Format Version | |
| constexpr int | MRI_MGH_VERSION = 1 |
MGH Voxel Data Types | |
Data type codes for voxels in MGH/MGZ files. From FreeSurfer mri.h and MNE C mne_types_mne-c.h. See: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat "type: data type of the image buffer; can be one of the following: UCHAR, SHORT, INT, or FLOAT (specified as 0, 4, 1, or 3, respectively)" | |
| constexpr int | MRI_UCHAR = 0 |
| constexpr int | MRI_INT = 1 |
| constexpr int | MRI_LONG = 2 |
| constexpr int | MRI_FLOAT = 3 |
| constexpr int | MRI_SHORT = 4 |
| constexpr int | MRI_BITMAP = 5 |
| constexpr int | MRI_TENSOR = 6 |
Frame Loading Constants | |
| constexpr int | MRI_ALL_FRAMES = -1 |
| constexpr int | MRI_NO_FRAMES = -2 |
MGH Header Constants | |
Fixed offsets and sizes in the MGH file header. See: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat | |
| constexpr int | MRI_MGH_DATA_OFFSET = 284 |
| constexpr int | MRI_MGH_HEADER_FIXED_SIZE = 30 |
MGH Footer Tag Types | |
Tag identifiers found in the MGH footer after the voxel data. From FreeSurfer tags.h. | |
| constexpr int | MGH_TAG_OLD_SURF_GEOM = 20 |
| constexpr int | MGH_TAG_OLD_MGH_XFORM = 30 |
| constexpr int | MGH_TAG_MGH_XFORM = 31 |
COR Slice Constants | |
Fixed dimensions for FreeSurfer COR slice files. COR files contain 256 coronal slices of 256×256 unsigned chars at 1mm isotropic. | |
| constexpr int | COR_NSLICE = 256 |
| constexpr int | COR_WIDTH = 256 |
| constexpr int | COR_HEIGHT = 256 |
| constexpr float | COR_PIXEL_SIZE = 1e-3f |
Volume I/O, voxel geometry and slice resampling for structural MRI data inside mne-cpp.
Hosts every public type that participates in loading a 3D MRI volume (MGH/MGZ, NIfTI-1, FreeSurfer COR), describing it in memory (MriVolData, MriSlice), resampling it onto an orthogonal viewing plane (MriSlicer, MriSliceImage) and re-serialising it through the FIFF MRI block hierarchy (MriCorFifIO).
|
strong |
Slice orientation for orthogonal MRI volume slicing.
| Enumerator | |
|---|---|
| Axial | |
| Coronal | |
| Sagittal | |
Definition at line 75 of file mri_slicer.h.
| const char * MRILIB::buildDateTime | ( | ) |
Returns the build date and time.
Definition at line 30 of file mri_global.cpp.
| const char * MRILIB::buildHash | ( | ) |
Returns the short git hash.
Definition at line 31 of file mri_global.cpp.
| const char * MRILIB::buildHashLong | ( | ) |
Returns the long git hash.
Definition at line 32 of file mri_global.cpp.
|
constexpr |
Height of each COR slice in pixels.
Definition at line 135 of file mri_types.h.
|
constexpr |
Number of COR slices.
Definition at line 133 of file mri_types.h.
|
constexpr |
Pixel size for COR slices (1mm in meters).
Definition at line 136 of file mri_types.h.
|
constexpr |
Width of each COR slice in pixels.
Definition at line 134 of file mri_types.h.
|
constexpr |
MGH Talairach transform tag (contains path to .xfm file).
Definition at line 119 of file mri_types.h.
|
constexpr |
Old MGH transform tag.
Definition at line 118 of file mri_types.h.
|
constexpr |
Old surface geometry tag.
Definition at line 117 of file mri_types.h.
|
constexpr |
Load all frames.
Definition at line 84 of file mri_types.h.
|
constexpr |
Bitmap (unused in practice).
Definition at line 73 of file mri_types.h.
|
constexpr |
32-bit float.
Definition at line 71 of file mri_types.h.
|
constexpr |
Signed 32-bit integer.
Definition at line 69 of file mri_types.h.
|
constexpr |
Long integer (unused in practice).
Definition at line 70 of file mri_types.h.
|
constexpr |
Fixed byte offset where image data begins (bytes 0-283 are header).
Definition at line 100 of file mri_types.h.
|
constexpr |
Size of the fixed portion of the header (before RAS info).
Definition at line 103 of file mri_types.h.
|
constexpr |
Current MGH file format version.
Definition at line 50 of file mri_types.h.
|
constexpr |
Do not load data at all.
Definition at line 85 of file mri_types.h.
|
constexpr |
Signed 16-bit short.
Definition at line 72 of file mri_types.h.
|
constexpr |
Tensor (unused in practice).
Definition at line 74 of file mri_types.h.
|
constexpr |
Unsigned char (8-bit).
Definition at line 68 of file mri_types.h.