pub fn run_iqsm(
phases: &[&[f64]],
magnitudes: &[&[f64]],
mask: &[u8],
metadata: &ScanMetadata,
reference: QsmReference,
) -> Result<Vec<f64>, PipelineError>Expand description
Run iQSM single-step reconstruction from wrapped phase (joint unwrap +
background removal + dipole inversion). Multi-echo inputs are reconstructed
per echo and magnitude·TE²-combined. Requires the onnx feature + iqsm weights.
phases/magnitudes are per-echo wrapped-phase / magnitude volumes (column-major);
metadata supplies the grid, echo times, and B0. Returns susceptibility (ppm),
referenced per reference.