Function compute_udf
Source pub fn compute_udf(obstacles: &DMatrix<bool>) -> DMatrix<f64>
Expand description
Compute the unsigned distance field (UDF) from a boolean obstacle grid.
§Arguments
obstacles - A 2D matrix where true represents an obstacle cell and
false represents free space.
§Returns
A matrix of Euclidean distances from each cell to the nearest obstacle.