MEDI toolbox
qsmxt run study/bids --pipeline medi-toolboxIn the TUI: the Pipeline tab, MEDI toolbox.
Based on: The MEDI toolbox’s example pipeline (README.m) · Liu et al. 2011.
Parity: QSM-CI’s parity check against the original toolbox, for the latest QSMxT release (how parity is checked).
Use it when
Section titled “Use it when”You want results comparable with the MEDI toolbox’s own pipeline: its complex echo fit, PDF and MEDI.
Steps and settings
Section titled “Steps and settings”Choosing it resets every reconstruction stage to QSMxT’s defaults, then sets these. Every other setting keeps its default.
| Stage | Setting | This pipeline | QSMxT default | Why |
|---|---|---|---|---|
| Masking | Mask | magnitude,bet:0.50 |
phase-quality,threshold:otsu,dilate:1,fill-holes:0,erode:1 |
MEDI’s pipeline masks with FSL’s brain extraction (fractional threshold 0.5) on the combined magnitude. (note 1) |
Orientation (--bet-orientation) |
As stored | As FSL reads it | The MEDI toolbox runs brain extraction on the image as stored, while FSL’s own tool flips a neurologically stored image first; the two masks differ slightly at the brain’s edge. | |
Inhomogeneity correction (--no-inhomogeneity-correction) |
off | on | The MEDI toolbox runs brain extraction on the magnitude as read, with no bias-field correction. | |
| Field map | Phase unwrapping (--unwrapping-algorithm) |
MEDI region growing | ROMEO | MEDI’s pipeline unwraps its complex echo fit’s field with its region-growing unwrapping, guided by the combined magnitude. |
B0 estimation (--b0-estimation) |
Complex fit | Weighted average | MEDI’s field map and its noise map both come from its complex echo fit. PDF weights the field by the noise map from MEDI’s complex echo fit. | |
| Background | Background removal (--bf-algorithm) |
V-SHARP | MEDI’s pipeline inverts the PDF local field. | |
| Inversion | QSM inversion (--qsm-algorithm) |
MEDI | iLSQR | The MEDI toolbox’s pipeline inverts the field with MEDI. |
| Reference | QSM reference (--qsm-reference) |
None | Mean | MEDI references susceptibility to the ventricular CSF inside its inversion (with three or more echoes), and the pipeline does nothing after it. |
Notes on the table:
- MEDI’s PDF runs inside the brain extraction’s mask. The MEDI toolbox runs its brain extraction on the magnitude combined over echoes. It uses the brain mask as it is, without eroding it.
Intentional differences from the original
Section titled “Intentional differences from the original”None.
Known gaps
Section titled “Known gaps”None known.
Citations
Section titled “Citations”- Liu, T., et al. (2011). “Morphology enabled dipole inversion (MEDI) from a single-angle acquisition: Comparison with COSMOS in human brain imaging.” Magnetic Resonance in Medicine, 66(3):777-783. https://doi.org/10.1002/mrm.22816
- Liu, T., et al. (2011). “A novel background field removal method for MRI using projection onto dipole fields (PDF).” NMR in Biomedicine, 24(9):1129-1136. https://doi.org/10.1002/nbm.1670
- Stewart, A. (2026). QSMxT. https://github.com/QSMxT/QSMxT