Expand description
Multi-echo phase combination and B0 field mapping.
Building blocks for turning multi-echo wrapped phase into a B0 field map: phase-offset removal (MCPC-3D-S / ASPIRE), weighted B0 estimation, and linear multi-echo fitting.
Structs§
- Coil
Combination Result - Result of MCPC-3D-S multi-coil combination (
mcpc3ds_combine). - Linear
FitParams - Parameters for multi-echo linear fit.
- Linear
FitResult - Result of multi-echo linear fit
- Phase
Offset Params - Parameters for phase offset removal.
Enums§
- B0Weight
Type - B0 weighting types matching MriResearchTools.jl
Functions§
- bipolar_
correction - Bipolar gradient correction for multi-echo phase data.
- calculate_
b0_ weighted - Calculate B0 field from unwrapped phase using weighted averaging
- field_
to_ hz - Convert field from rad/s to Hz
- gaussian_
box_ sizes - Box-filter widths approximating a Gaussian of
sigma(voxels) withnpasses — thegetboxsizesof MriResearchTools.jl (Kovesi’s “fast almost-Gaussian” construction). Returns all-ones (i.e. no smoothing) whensigmais not positive. - mcpc3ds_
combine - MCPC-3D-S multi-coil phase combination (Eckstein et al., MRM 2018), as in
MriResearchTools.jl’smcpc3dsfor 5D (multi-echo, uncombined) input. - multi_
echo_ linear_ fit - Multi-echo linear fit with magnitude weighting
- nan_
box_ smooth_ 3d - Masked 3D smoothing by repeated NaN-aware box filtering — the
maskbranch ofgaussiansmooth3d!in MriResearchTools.jl (4 passes per axis, alternating direction on even passes, box widths fromgaussian_box_sizes). Voxels outsidemaskbecomeNaNbefore filtering and are only given values where the filter extrapolates across the boundary; the result is written in place. - nan_
box_ smooth_ 3d_ phase - Masked phase smoothing via the complex representation, using
nan_box_smooth_3d—gaussiansmooth3d_phase(phase, sigma; mask)of MriResearchTools.jl. ReturnsNaNwhere the smoothed complex value is undefined (far outside the mask). - phase_
offset_ removal - MCPC-3D-S phase offset estimation for single-coil multi-echo data