pub fn lsqr_qsm(
local_field: &[f64],
mask: &[u8],
magnitude: Option<&[f64]>,
grid: &Grid,
bdir: (f64, f64, f64),
params: &LsqrQsmParams,
progress: impl FnMut(usize, usize),
) -> Vec<f64>Expand description
Minimally regularised LSQR dipole inversion.
§Arguments
local_field- Local field in ppm (nx * ny * nz, Fortran order)mask- Binary mask; the data equation is written over these voxels onlymagnitude- Optional magnitude image, the row weightW(used as is; LSQR’s solution does not depend on its scale)grid- Volume gridbdir- B0 directionparams- Algorithm parametersprogress- Progress callback(iteration, max_iter)
§Returns
Susceptibility map in ppm (zero outside the mask’s bounding box, and outside the mask
with mask_output).