Function edt::edt

source · []
pub fn edt<T: BoolLike>(
    map: &[T],
    shape: (usize, usize),
    invert: bool
) -> Vec<f64>
Expand description

Produce an EDT from binary image.

The returned vec has the same size as the input slice, containing computed EDT.

It assumes zero pixels are obstacles. If you want to invert the logic, put true to the third argument.