Expand description
Masking stage
Generates a binary brain mask from magnitude/phase data using a configurable sequence of operations (threshold, BET, morphological ops). Multiple mask sections can be OR’d together.
Functions§
- apply_
mask_ ops - Apply mask operations to an existing mask, in order.
- build_
mask_ section - Build a mask from a single section (generator + refinements).
- resolve_
masking_ input - Resolve masking input data based on the MaskingInput type.
- run_
hd_ 🔒bet - Source the HD-BET weights and run it. Requires the
onnxfeature; weights come from the model registry (local$QSM_MODEL_DIR/cache, or thedownloadfeature). - run_
masking - Build a mask from multiple sections, OR’d together.