pub fn medi(
local_field: &[f64],
mask: &[u8],
magnitude: EchoMagnitudes<'_>,
grid: &Grid,
bdir: (f64, f64, f64),
params: &MediParams,
progress: impl FnMut(usize, usize),
) -> Vec<f64>Expand description
MEDI dipole inversion (MEDI_L1.m)
§Arguments
local_field- Local field in ppm (nx * ny * nz)mask- Binary mask (nx * ny * nz), 1 = brainmagnitude- The echo magnitudes (see module docs)grid- Volume grid (dimensions and voxel sizes)bdir- B0 field directionparams- MEDI parameters, including field strength and echo spacingprogress- Progress callback(current_step, total_steps)over CG iterations
§Returns
Susceptibility in ppm, zero outside the mask (the SMV-eroded mask when smv is on without
msmv)