Skip to main content

knn_graph

Function knn_graph 

Source
pub fn knn_graph(
    cloud: &PointCloud,
    k: usize,
) -> Result<NeighborGraph, SpatialError>
Expand description

Builds a directed k-nearest-neighbor graph: an edge from every point to each of its k nearest neighbors (excluding itself).