pub fn calculate_curvature_proximity(
mask: &[u8],
prox1: &[f64],
lower_lim: f64,
curv_constant: f64,
sigma: f64,
nx: usize,
ny: usize,
nz: usize,
) -> (Vec<f64>, Vec<f64>)Expand description
Calculate proximity maps using curvature at the brain surface
This is the main entry point matching QSMART’s calculate_curvature function.
§Arguments
mask- Binary brain maskprox1- Initial proximity map from Gaussian smoothinglower_lim- Clamping value for proximity (default 0.6)curv_constant- Scaling constant for curvature (default 500)sigma- Kernel size for smoothing curvaturenx,ny,nz- Volume dimensions
§Returns
Modified proximity map incorporating curvature-based edge weighting