Skip to main content

Module swi

Module swi 

Source
Expand description

Susceptibility Weighted Imaging (SWI)

SWI enhances susceptibility contrast by combining magnitude and phase information. Phase is high-pass filtered, converted to a [0, 1] mask, and multiplied with magnitude.

Reference: Eckstein, K., et al. (2021). “Computationally efficient combination of multi-channel phase data from multi-echo acquisitions (ASPIRE).” Magnetic Resonance in Medicine, 79:2996-3006. https://doi.org/10.1002/mrm.26963

Reference implementation: https://github.com/korbinian90/CLEARSWI.jl

Structs§

SwiParams
SWI algorithm parameters

Enums§

PhaseScaling
Phase mask scaling type

Functions§

calculate_swi
Calculate SWI from unwrapped phase and magnitude
calculate_swi_default
Calculate SWI with default parameters
create_mip
Minimum intensity projection along the z-axis
create_mip_default
Minimum intensity projection with default window of 7 slices
create_phase_mask
Create phase mask from filtered phase values
highpass_filter
High-pass filter by subtracting Gaussian-smoothed version
negative_range 🔒
Get min/max of non-positive values within mask
positive_range 🔒
Get min/max of positive values within mask
rescale 🔒
Linear rescale from [old_min, old_max] to [new_min, new_max]
softplus_scaling
Softplus magnitude scaling for enhanced contrast