Partial Hausdorff Distances for Outlier Robust Matching

22 concepts15 papers1 proposal

When comparing two shapes, images, or sets of features, a fundamental challenge arises: how do we measure similarity when the data is corrupted by noise, occlusions, or background clutter?

If we treat these objects as sets of points, a classical approach is to use the standard Hausdorff distance. However, the standard Hausdorff distance is notoriously brittle. To make set matching practical in real-world scenarios, researchers developed partial and relaxed Hausdorff distances. By shifting from worst-case operators to order statistics, these metrics allow algorithms to automatically ignore outliers and focus on the best-matching subsets of data.

The Tyranny of the Max Operator

To understand why the standard Hausdorff distance fails in the presence of noise, consider its mathematical definition. Given two point sets $A$ and $B$, the directed Hausdorff distance $h(A, B)$ is defined as:

$$h(A, B) = \max_{a \in A} \min_{b \in B} \|a - b\|$$

In plain English, the algorithm performs a two-step calculation:

  1. For every point $a$ in set $A$, find its closest neighbor $b$ in set $B$.
  2. Find the maximum (worst-case) distance among all these nearest-neighbor pairs.

The bidirectional Hausdorff distance is simply the maximum of $h(A, B)$ and $h(B, A)$.

Set A:  o   o   o   o                               o (Outlier)
        |   |   |   |                               |
Set B:  x   x   x   x                               .
        [--- Well-aligned regions ---]    [--- Explodes the Max ---]

This formulation is highly effective when sets are clean and perfectly registered, as explored in early computer vision work like the visual navigation system proposed by Daniel P. Huttenlocher et al., which matched 2D edge maps without requiring explicit point-to-point correspondences.

However, the $\max$ operator is a single-point bottleneck. If set $A$ contains 100 points, and 99 of them perfectly align with set $B$, but a single point is an outlier caused by sensor noise or background clutter, the standard Hausdorff distance explodes. The metric reflects the quality of the single worst point rather than the overall similarity of the sets.

The Core Intuition: Switching to Order Statistics

To bypass this vulnerability, researchers replaced the absolute maximum operator with a rank-order statistic. Instead of selecting the largest distance, the partial Hausdorff distance sorts the nearest-neighbor distances in ascending order and selects the $K$-th largest distance (or a specific percentile).

Mathematically, if $A$ contains $N$ points, we can sort the distances $d_a = \min_{b \in B} \|a - b\|$ such that $d_1 \le d_2 \le \dots \le d_N$. The partial directed Hausdorff distance is then defined as:

$$h_K(A, B) = K\text{-th}_{a \in A} \min_{b \in B} \|a - b\| = d_K$$

By setting $K$ to a value less than $N$ (for example, $K = 0.8N$), we explicitly grant the algorithm an "outlier budget." The metric is now free to completely ignore the worst 20% of the points.

This simple modification fundamentally changes the behavior of the metric. As demonstrated by Daniel P. Huttenlocher et al. in the context of tracking non-rigid objects, this rank-order approach allows a system to successfully track a target even when significant portions of its shape are obscured by background clutter or occlusions. The metric evaluates the quality of the best-matching subset rather than penalizing the entire object for partial mismatches.

This relaxation also yields powerful theoretical properties. Pedro F. Felzenszwalb demonstrated that shape-based recognition using this $K$-th ranked distance is mathematically equivalent to a linear classifier operating within a transformed, dilated feature space. This insight bridges geometric set matching with classical machine learning, proving that the partial distance metric naturally provides robustness against imperfect edge detection.

Generalizing to Feature Spaces and Partial Correspondences

The intuition behind partial matching extends far beyond 2D spatial coordinates. In high-dimensional feature spaces, local descriptors often suffer from a "Goldilocks problem": if a descriptor's support area is too small, it lacks distinctiveness; if it is too large, a single background change or occlusion corrupts the entire vector.

To resolve this, Jeffrey Byrne et al. introduced Nested Shape Descriptors, which apply order statistics directly to descriptor components. By sorting individual element differences and summing only the best $k$ matches, their metric isolates and discards corrupted regions of a large descriptor, allowing for wider, more distinctive support areas without the associated brittleness.

Standard Summation:  [ Diff 1 ] + [ Diff 2 ] + [ Diff 3 (Occluded) ]  --> Metric Corrupted
Order Statistics:    Sort([Diff 1, Diff 2, Diff 3]) -> Sum(Best 2)   --> Metric Robust

When comparing entire bags of features where the sets may be of different sizes or contain significant noise, computing exact correspondences becomes computationally prohibitive. The Pyramid Match framework, developed by Kristen Grauman and Trevor Darrell, scales partial matching to massive datasets. In The Pyramid Match Kernel and Pyramid Match Hashing, the authors map feature sets to multi-resolution histograms and compute weighted intersections. This approximates the optimal partial match in linear time, ensuring that similarity scores are not penalized by unaligned background features.

Bidirectional Rankings and Neighborhood Topology

Another powerful evolution of this concept moves away from raw geometric distances entirely, looking instead at the topology of the feature space. Instead of measuring how far apart two points are, we can measure how much they agree on the ranking of their neighbors.

Wei Li et al. formalized this via relative neighborhood analysis for person re-identification. Instead of calculating direct Euclidean distances between image sets, similarity is evaluated based on the overlap of their respective nearest neighbors. This concept was expanded into Symmetric Rank-Order Dissimilarity by Wei Li et al., which quantifies the relationship between two samples by summing the rank positions of one sample's top neighbors within the other's sorted neighbor list.

Image A's Neighbors: [Img 1, Img 2, Img 3, Img B]  --> Img B is Rank 4
Image B's Neighbors: [Img 2, Img 1, Img 3, Img A]  --> Img A is Rank 4
Collective neighborhood agreement stabilizes the distance against individual feature noise.

Why does this work? In complex visual tasks like tracking people across non-overlapping cameras, lighting and pose changes distort standard geometric distances. However, the local neighborhood structure remains relatively stable. By utilizing bidirectional neighborhood rankings, the metric acts as a quantized distance measure that leverages collective neighborhood agreement to neutralize individual feature outliers.

Robust Set Matching in Video and Multimodal Streams

Today, the principles of relaxed Hausdorff distances underpin state-of-the-art architectures for video analysis and multimodal alignment, where data streams are inherently noisy.

In video-based vehicle re-identification, a video is treated as an unordered set of frames. However, video sequences frequently contain frames degraded by motion blur, compression artifacts, or passing obstacles. To prevent these low-quality frames from corrupting the sequence match, the authors of PhD Learning implemented a relaxed Pompeiu-Hausdorff distance. By evaluating the $k$-th maximum distance between frame sets, the network automatically filters out uninformative or occluded frames, optimizing the embedding space specifically around high-quality matches.

This core mechanism of filtering out non-corresponding elements manifests across several other domain-specific applications:

  • Multimodal Alignment: When registering visible-light images with infrared (IR) images, many features appear in one modality but are completely absent in the other. Yunlong Sheng et al. utilized a block-wise Hausdorff distance to align structural curves, exploiting the metric's inherent outlier immunity to ignore modality-specific artifacts.
  • Video Search Reranking: In multi-view video retrieval, initial search results are highly inconsistent. Yao Zhao et al. used a partial Hausdorff metric to measure the distance between candidate clusters and high-confidence anchors, stabilizing the ranking mechanism against false positives.
  • Temporal Verification: For tracking objects under dynamic camera motion, Baoxin Li et al. deployed a generalized $L_p$ version of the Hausdorff metric, providing a robust confidence measure that reliably separates true targets from noisy background hypotheses.

By replacing rigid, global constraints with flexible, order-statistic based selections, partial Hausdorff distances turn the presence of noise from a fatal flaw into a manageable statistical variable.

Key Foundational Work

Tracking non-rigid objects in complex scenes (1993) — contributed 2 concept elements to this direction.
Visually-guided navigation by comparing two-dimensional edge images (1994) — contributed 2 concept elements to this direction.
History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 14 papers
  2. Version 1 · 2026-10-04 · 9 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_relaxed_hausdorff_distance_1af96a43,
  title = {relaxed Hausdorff distance},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/relaxed-hausdorff-distance/rdr_1af96a43166a4a5b912b2330e8d14dd7},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 2, frozen text):

@misc{lacuna_relaxed_hausdorff_distance_1af96a43_v2,
  title = {relaxed Hausdorff distance},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/relaxed-hausdorff-distance/rdr_1af96a43166a4a5b912b2330e8d14dd7/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake