Skip to main content

Module evolution

Module evolution 

Source
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