Skip to main content

calculate_curvature_proximity

Function calculate_curvature_proximity 

Source
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 mask
  • prox1 - Initial proximity map from Gaussian smoothing
  • lower_lim - Clamping value for proximity (default 0.6)
  • curv_constant - Scaling constant for curvature (default 500)
  • sigma - Kernel size for smoothing curvature
  • nx, ny, nz - Volume dimensions

§Returns

Modified proximity map incorporating curvature-based edge weighting