Expand description
The Hausdorff distance between point sets (SciPy’s scipy.spatial.distance.directed_hausdorff).
See the book entry Rotation fitting, Procrustes analysis and Hausdorff distance.
Structs§
- Directed
Hausdorff - The result of
directed_hausdorff: the distance and the pair of points that realise it.
Functions§
- directed_
hausdorff - The directed Hausdorff distance
h(u, v) = max_{a ∈ u} min_{b ∈ v} ‖a − b‖between point sets in any dimension (SciPy’sdirected_hausdorff), by Taha and Hanbury’s early-break algorithm: the inner search overvstops as soon as some point is closer than the largest minimum found so far, since thatacan no longer raise the maximum. SciPy shuffles the points first (with a fixed seed) to make early breaks likely; the library keeps the given order, which gives the same distance and, without ties, the same pair. - hausdorff_
distance - The (symmetric) Hausdorff distance
max(h(u, v), h(v, u)).