Offline Reconstruction of Sodium (²³Na) MRI: From Raw Data to Images
Learning objectives
- Explain why sodium MRI is often reconstructed offline
- Describe each step from raw k-space to a calibrated image
- Calculate the Nyquist number of projections for 3D radial sampling
- Choose between gridding, NUFFT and iterative reconstruction
Why reconstruct offline?
Sodium imaging relies on ultra-short echo time, centre-out readouts such as 3D radial, density-adapted 3D radial (DA-3DPR) or twisted projection imaging (TPI). Vendor reconstructions often do not support these research trajectories, or apply filters and scaling that hide what was done to the data. Reconstructing from raw data gives full control over density compensation, filtering, coil combination and quantification. See tissue sodium concentration for why that control matters.
The pipeline at a glance
- Export raw data from the scanner (for example Siemens TWIX .dat, GE ScanArchive or P-files, Philips raw/lab), or convert to the vendor-neutral ISMRMRD format.
- Read the data with a reader such as mapVBVD (MATLAB) or twixtools (Python) for TWIX.
- Compute the trajectory from the sequence parameters, ideally corrected with a measured gradient trajectory or gradient impulse response.
- Density compensation: weight each sample by the inverse of the local sampling density.
- Gridding or NUFFT: interpolate onto a Cartesian grid with a Kaiser–Bessel kernel, oversampled grid, inverse FFT and deapodisation.
- Coil combination: sum of squares, or an adaptive combine that preserves phase.
- Optional corrections: B0 off-resonance, B1 receive and transmit, relaxation.
- Quantification: scale to reference phantoms to give mmol/L.
Sampling density and compensation
Radial spokes all pass through the centre of k-space, so the centre is heavily oversampled and the edge undersampled. Without compensation the image is dominated by low frequencies and looks blurred. For a standard 3D radial acquisition the density falls roughly as 1/k², so the analytic weight is proportional to k². Density-adapted radial changes the readout gradient so that, beyond a radius k₀, samples are spaced uniformly, which improves SNR efficiency.

For trajectories without a simple analytic density, the iterative method of Pipe and Menon estimates weights numerically from the trajectory itself; Voronoi cell volumes are another option.
How many projections do you need?
For centre-out 3D radial with an N × N × N matrix, the Nyquist condition at the edge of k-space requires roughly:
N_projections ≈ 4π (k_max · FOV)² = π N²
Worked example
For a 64³ matrix: π × 64² ≈ 12,868 projections. With TR = 10 ms that is about 129 s per average. Acquiring 4,000 projections instead undersamples by about 3.2×, which shortens the scan but adds streaking that iterative methods can reduce.
Gridding versus NUFFT versus iterative
| Approach | What it does | Pros | Cons |
|---|---|---|---|
| Gridding (adjoint NUFFT + DCF) | Weights, interpolates onto a grid, inverse FFT | Fast, simple, robust | Streaks when undersampled; DCF choice matters |
| NUFFT-based least squares (for example CG) | Solves for the image that best fits the data | Better with undersampling and multi-coil data | Slower; needs stopping rules |
| Compressed sensing / regularised | Adds sparsity or total-variation priors | Fewer projections, less noise | Can bias quantitative values; tune carefully |
A minimal Python example
The sketch below uses SigPy for a gridding reconstruction of one coil. Coordinates are in grid units (−N/2 to N/2).
import numpy as np
import sigpy as sp
import sigpy.mri as mr
N = 64 # matrix size
coord = np.load("traj.npy") # shape (n_proj, n_read, 3), grid units
ksp = np.load("ksp_coil0.npy") # shape (n_proj, n_read), complex
dcf = mr.pipe_menon_dcf(coord, img_shape=(N, N, N)) # density compensation
img = sp.nufft_adjoint(ksp * dcf, coord, oshape=(N, N, N))
mag = np.abs(img)
For several coils, repeat per coil and combine with root-sum-of-squares, or use an adaptive combination. Toolboxes such as BART, SigPy, FINUFFT, gpuNUFFT and MRIReco.jl provide fast NUFFT and iterative solvers.
Common pitfalls
- Trajectory errors from gradient delays shift or blur the image; measure or calibrate them
- Wrong density compensation changes apparent intensity and therefore concentration
- Filters applied for display (for example Hamming) also change partial volume; apply the same processing to phantoms and tissue
- Off-resonance blurs long readouts; keep readouts short or correct B0
Key takeaways
- Offline reconstruction gives control and reproducibility for quantitative sodium MRI
- Density compensation is essential for radial data
- Nyquist for 3D radial is about πN² projections; undersampling needs iterative methods
FAQ
Is ISMRMRD worth converting to?
Yes for sharing and reproducibility: it stores raw data and acquisition headers in one vendor-neutral file.
Can I use the vendor image for TSC?
Only if you know exactly what filtering and scaling were applied, and apply the same to your reference phantoms.
References
- Jackson JI, Meyer CH, Nishimura DG, Macovski A. Selection of a convolution function for Fourier inversion using gridding. IEEE Trans Med Imaging 1991;10:473-478.
- Pipe JG, Menon P. Sampling density compensation in MRI: rationale and an iterative numerical solution. Magn Reson Med 1999;41:179-186.
- Fessler JA, Sutton BP. Nonuniform fast Fourier transforms using min-max interpolation. IEEE Trans Signal Process 2003;51:560-574.
- Boada FE, Gillen JS, Shen GX, Chang SY, Thulborn KR. Fast three dimensional sodium imaging. Magn Reson Med 1997;37:706-715.
- Nagel AM, Laun FB, Weber MA, Matthies C, Semmler W, Schad LR. Sodium MRI using a density-adapted 3D radial acquisition technique. Magn Reson Med 2009;62:1565-1573.
- Walsh DO, Gmitro AF, Marcellin MW. Adaptive reconstruction of phased array MR imagery. Magn Reson Med 2000;43:682-690.
- Inati SJ, Naegele JD, Zwart NR, et al. ISMRM Raw data format: a proposed standard for MRI raw datasets. Magn Reson Med 2017;77:411-421.
Educational disclaimer: code and parameters are illustrative starting points. Validate any pipeline against phantoms and your own scanner data before using it for research results.



