pub fn rts(
local_field: &[f64],
mask: &[u8],
nx: usize,
ny: usize,
nz: usize,
vsx: f64,
vsy: f64,
vsz: f64,
bdir: (f64, f64, f64),
delta: f64,
mu: f64,
rho: f64,
tol: f64,
max_iter: usize,
lsmr_iter: usize,
) -> Vec<f64>Expand description
RTS dipole inversion (optimized)
§Arguments
local_field- Local field values (nx * ny * nz)mask- Binary mask (nx * ny * nz), 1 = inside ROInx,ny,nz- Array dimensionsvsx,vsy,vsz- Voxel sizes in mmbdir- B0 field directiondelta- Threshold for ill-conditioned region (typically 0.15)mu- Regularization parameter for well-conditioned region (typically 1e5)rho- ADMM penalty parameter (typically 10)tol- Convergence tolerancemax_iter- Maximum ADMM iterationslsmr_iter- LSMR iterations for step 1 (typically 4)
§Returns
Susceptibility map