Expand description
Vasculature Mask Generation for QSMART
This module generates a binary mask identifying blood vessels in the brain. The vasculature mask is used in QSMARTโs two-stage processing to separate tissue from vessel regions, reducing streaking artifacts near veins.
The algorithm:
- Apply morphological bottom-hat filtering to enhance dark tubular structures
- Apply Frangi vesselness filter to detect vessels
- Threshold: vesselness above 0.2% of maximum = vessel (noise floor filtering)
- Return complementary mask (1 = tissue, 0 = vessel)
Structsยง
- Sphere
Kernel ๐ - Spherical structuring element with pre-computed linear offsets for fast access
- Vasculature
Params - Parameters for vasculature mask generation
Functionsยง
- dilate_
grayscale_ ๐optimized - Optimized grayscale dilation with spherical structuring element Uses pre-computed linear offsets and separates interior from boundary processing
- erode_
grayscale_ ๐optimized - Optimized grayscale erosion with spherical structuring element
- generate_
vasculature_ mask - Generate vasculature mask from magnitude image
- generate_
vasculature_ mask_ default - Simple wrapper with default parameters
- generate_
vasculature_ mask_ with_ progress - Generate vasculature mask with progress callback
- morphological_
bottom_ ๐hat - Morphological bottom-hat filter (closing - original)