Skip to main content

iqsm_multi_echo

Function iqsm_multi_echo 

Source
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],
) -> Result<Vec<f64>, OnnxError>
Expand description

Multi-echo iQSM: reconstruct each echo and combine with magnitude·TE² weights (the authors’ --echo_4d path). phases/magnitudes are per-echo volumes; tes the echo times (s). Falls back to uniform weights if magnitudes is empty.