Skip to main content

Module hausdorff

Module hausdorff 

Source
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§

DirectedHausdorff
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’s directed_hausdorff), by Taha and Hanbury’s early-break algorithm: the inner search over v stops as soon as some point is closer than the largest minimum found so far, since that a can 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)).