Skip to main content

calculate_weights_bestpath

Function calculate_weights_bestpath 

Source
pub fn calculate_weights_bestpath(
    phase: &[f64],
    mask: &[u8],
    nx: usize,
    ny: usize,
    nz: usize,
) -> Vec<u8> 
Expand description

Calculate BestPath edge weights.

Uses second-order phase differences across all neighbor directions (Abdul-Rahman, https://doi.org/10.1364/AO.46.006623). Matches ROMEO.jl calculateweights_bestpath.