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
BET algorithm parameters

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
Run BET brain extraction
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