Skip to main content

Crate spatialrust_metrics

Crate spatialrust_metrics 

Source
Expand description

Point cloud comparison metrics for SpatialRust.

Distance metrics quantify how close two clouds are — the standard way to score registration, reconstruction, or downsampling against a reference.

Structs§

CloudDistances
A bundle of directed and symmetric cloud-to-cloud distance statistics.

Functions§

chamfer_distance
Symmetric Chamfer distance between two clouds (sum of mean squared NN distances in both directions). Lower is better; zero for identical clouds.
cloud_distances
Computes directed NN distance statistics between a and b in both directions with a single KD-tree per side.
hausdorff_distance
Symmetric Hausdorff distance between two clouds (the largest NN distance in either direction). Captures the worst-case discrepancy.