Skip to main content

run_iqfm

Function run_iqfm 

Source
pub fn run_iqfm(
    phases: &[&[f64]],
    magnitudes: &[&[f64]],
    mask: &[u8],
    metadata: &ScanMetadata,
) -> 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. Requires the onnx feature + iqfm weights.