pub fn run_iqfm(
phases: &[&[f64]],
magnitudes: &[&[f64]],
mask: &[u8],
metadata: &ScanMetadata,
tile: Option<(usize, usize)>,
echo_weighting: IqsmEchoWeighting,
) -> Result<Vec<f64>, PipelineError>Expand description
Run iQFM: joint unwrapping + background removal from wrapped phase in one
network (the tissue-field head of the iQSM LoT-Unet). Returns the local
(background-removed) field in ppm — feed it to any dipole inversion. This is a
deep-learning replacement for the unwrap + BFR stages, not an inversion. Multi-echo
inputs are combined with echo_weighting, as in run_iqsm.
Requires the onnx feature + iqfm weights.