Skip to main content

run_xqsm

Function run_xqsm 

Source
fn run_xqsm(
    local_field_ppm: &[f64],
    mask: &[u8],
    grid: &Grid,
    tile: Option<(usize, usize)>,
    progress: &mut dyn FnMut(usize, usize),
) -> Result<Vec<f64>, PipelineError>
Expand description

Source the xQSM weights and run inference. Requires the onnx feature; weights come from the model registry (local $QSM_MODEL_DIR/cache, or the download feature).