Skip to main content

Module bg_removal

Module bg_removal 

Source
Expand description

Background field removal stage

Dispatcher that calls the appropriate background removal algorithm based on configuration, including algorithm-specific parameter defaults (V-SHARP radii computation, LBV’s scan parameters, iSMV radius).

Functions§

run_bfrnet 🔒
Source the BFRnet weights and run inference, whole-volume or tiled (tile). Requires the onnx feature; weights resolve through crate::models (bytes supplied with crate::models::provide_weights, then $QSM_MODEL_DIR/cache/download on native).
run_bg_removal
Run background field removal on a total field map.