Function dt1d

Source
fn dt1d(f: &[f64], d: &mut [f64], v: &mut [usize], z: &mut [f64])
Expand description

1-D squared-distance transform of sampled function f into d (lower envelope of parabolas). v/z are scratch of len ≥ f.len() / f.len()+1.