Persistence-based Hough Transform for Line Detection

Johannes Ferner, Stefan Huber, Saverio Messineo, Angel Pop, Martin UrayarXiv 2025 · DOI

Introduction

The Hough transform is a cornerstone of computer vision, widely used to detect lines by mapping image pixels into a parameter space (Hough space) where they "vote" for potential geometric primitives. Traditionally, lines are identified by applying a global threshold to these vote counts. However, this approach is notoriously sensitive: a high threshold may miss lines with fewer points, while a low threshold can lead to "ghost" lines generated by noise.

This paper proposes a "topology-informed" approach that replaces simple peak thresholding with Persistent Homology (PH). By focusing on how much a peak "stands out" from its surroundings (persistence) rather than its absolute height (vote count), the method significantly improves line detection robustness against noise and varying line lengths without the need for tedious parameter tuning.

Methodology: From Votes to Topology

The core innovation lies in treating the Hough accumulator array as a scalar field or "landscape" and analyzing its topological features through a multi-step process.

  1. Hough Mapping: Points in the image space $I$ are mapped to sinusoidal curves in the Hough space $S$. The intersection of these curves indicates a potential line in the original image. Mapping points from image space to sinusoidal curves in the Hough space. Source, p. 3
  2. Topological Filtration: The method treats the accumulator array as a 3D landscape and applies a superlevel-set filtration. This can be visualized as gradually lowering the "water level" over the landscape.
  3. Persistence Diagrams (PD): As the water level drops, peaks (islands) appear ("birth") and eventually merge with taller peaks ("death"). PH tracks the lifespan of these features.
  4. Persistence Thresholding: The key innovation is selecting lines based on persistence—the difference between birth and death levels. A small bump on a mountainside has low persistence, even at high altitude, whereas a lone hill in a valley has high persistence. This allows the algorithm to distinguish true lines from noise clusters, even if the noise has a high absolute vote count.
  5. Möbius Topology: The authors account for the periodic nature of Hough space (where edges are "glued" together like a Möbius strip), ensuring topological calculations remain consistent across parameter boundaries.
Mapping points from image space to sinusoidal curves in the Hough space.

Experimental Setup

The study utilized synthetic datasets to provide a controlled environment for stress-testing. The test images (256x256 pixels) contained two parallel lines. Noise was introduced by perturbing points using normally distributed shifts orthogonal to the lines, with noise levels ($\epsilon$) ranging from 5 to 19. The authors also tested scenarios with uneven sampling—where one line had significantly fewer points than the other—to evaluate the method's ability to detect "weaker" lines in the presence of "stronger" ones.

Results and Discussion

The PH-based method consistently outperformed standard implementations, particularly in high-noise environments.

  • Robustness and Precision: In experiments across 1,500 images, the PH method achieved an Accuracy of 47.78% compared to the original's 24.67%. More strikingly, it demonstrated far higher precision (91.39% vs. 24.73%), producing significantly fewer false-positive detections.
  • Geometric Separation: In a Persistence Diagram, noise clusters near the diagonal (low persistence), while true features move away from it. This geometric separation makes filtering much more intuitive than picking a single horizontal line on a histogram. Persistence diagram showing the separation of detected lines from unwanted noise. Source, p. 7
  • Graceful Degradation: While standard methods saw performance drop sharply at noise levels above $\epsilon = 10$, the PH-based approach maintained high performance and degraded much more slowly.
Persistence diagram showing the separation of detected lines from unwanted noise.

Conclusion and Future Work

By prioritizing topological prominence over absolute magnitude, the persistence-based Hough transform offers a more robust and parameter-stable solution for line detection. While the computational cost of TDA is higher than simple thresholding—adding $O(n \log n)$ complexity for filtration—the gains in precision and noise handling are substantial. Future research will focus on extending this framework to the Generalized Hough Transform for detecting complex shapes like circles and ellipses, as well as providing formal mathematical proofs for the pipeline's stability.

Summary updated

BibTeX
@misc{ferner2025persistence,
  author = {Johannes Ferner and Stefan Huber and Saverio Messineo and Angel Pop and Martin Uray},
  title = {{Persistence-based Hough Transform for Line Detection}},
  year = {2025},
  eprint = {2504.16114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.16114},
}
Figure