pub fn tgv_qsm(
phase: &[f64],
mask: &[u8],
grid: &Grid,
params: &TgvParams,
b0_dir: (f64, f64, f64),
progress: impl FnMut(usize, usize),
) -> Vec<f64>Expand description
Main TGV-QSM reconstruction
§Arguments
phase- Wrapped phase datamask- Binary maskgrid- Volume grid (dimensions and voxel sizes)params- TGV parametersb0_dir- B0 field directionprogress- Progress callback(iteration, total_iterations)
The reconstruction runs in single precision internally; inputs and
outputs use f64 to match the rest of the crate’s API.