pub fn ilsqr(
field: &[f64],
mask: &[u8],
nx: usize,
ny: usize,
nz: usize,
vsx: f64,
vsy: f64,
vsz: f64,
bdir: (f64, f64, f64),
tol: f64,
maxit: usize,
) -> (Vec<f64>, Vec<f64>, Vec<f64>, Vec<f64>)Expand description
iLSQR: A method for estimating and removing streaking artifacts in QSM
§Arguments
field- Unwrapped local field/tissue phase (nx * ny * nz)mask- Binary mask of region of interestnx,ny,nz- Array dimensionsvsx,vsy,vsz- Voxel sizes in mmbdir- B0 field direction (bx, by, bz)tol- Stopping tolerance for LSMR solvermaxit- Maximum iterations for LSMR
§Returns
Tuple of (susceptibility, streaking_artifacts, fast_qsm, initial_lsqr)