Expand description
BET surface evolution algorithm
Based on: Smith, S.M. (2002) βFast robust automated brain extractionβ Human Brain Mapping, 17(3):143-155
Aligned with FSL-BET2 implementation.
StructsΒ§
- BetParameters π
- Brain parameters struct (like FSLβs bet_parameters)
- BetParams
- Run BET brain extraction
ConstantsΒ§
- MAX_
PASSES π - Maximum number of recovery passes (matches FSL-BET2)
- SELF_
INTERSECTION_ πTHRESHOLD - Self-intersection threshold (matches FSL-BET2)
FunctionsΒ§
- estimate_
brain_ πparameters - Estimate brain parameters from the image (matches FSL-BET2βs adjust_initial_mesh)
- evolution_
pass π - Run a single pass of surface evolution
- fill_
holes π - Simple hole filling
- percentile π
- Compute percentile of sorted array
- run_bet
- Returns
- run_
bet_ with_ progress - Run BET brain extraction with progress callback
- sample_
intensities_ πfsl - Sample min/max intensities along inward normal (matches FSL-BET2βs step_of_computation)
- sample_
intensity π - Trilinear interpolation
- surface_
to_ πmask - Convert surface mesh to binary mask using flood fill