Expand description
Brain-mask thresholding and morphology.
Mask generation (otsu_threshold) plus
morphological operations (erode/dilate/close/fill-holes) and sphere masks.
Functions§
- apply_
mask_ zero - Zero out elements where mask is 0.
- create_
sphere_ mask - Create a binary sphere mask on a 3D volume
- dilate_
mask - Dilate a binary mask by expanding into neighboring voxels (6-connectivity).
- erode_
mask - Erode a binary mask by removing boundary voxels (6-connectivity).
- fill_
holes - Fill holes in a binary mask
- morphological_
close - Morphological closing (dilation followed by erosion)
- otsu_
threshold - Otsu’s method for automatic threshold selection