pub fn iqsm_multi_echo(
phases: &[&[f64]],
magnitudes: &[&[f64]],
mask: &[u8],
grid: &Grid,
tes: &[f64],
b0: f64,
phase_sign: f64,
eroded_rad: i32,
model_onnx: &[u8],
tile: Option<&TileConfig>,
weighting: IqsmEchoWeighting,
) -> Result<Vec<f64>, OnnxError>Expand description
Multi-echo iQSM: reconstruct each echo and combine them with weighting (see
IqsmEchoWeighting; the default is (magnitude·TE)², the inverse-variance weight).
phases/magnitudes are per-echo volumes; tes the echo times (s). Without
magnitudes the weights are TE² alone (uniform magnitude).
tile: None runs each echo on the whole volume; Some runs it patch by patch (see the
module docs), the mask eroded once on the whole volume first.