Gradient based progressive probabilistic Hough transform

C. Galambos, Josef Kittler, Jiřı́ MatasIEE 2001

Abstract

The authors look at the benefits of exploiting gradient information to enhance the progressive probabilistic Hough transform (PPHT). It is shown that using the angle information in controlling the voting process and in assigning pixels to a line, the PPHT performance can be significantly improved. The performance gains are assessed in terms of repeatability of results, a measure that has direct relevance for its use in many applications. The overall improvement in output quality is shown to be greater than that found for the standard Hough transform using the same information. The improved algorithm gives results very close to those of the standard Hough transform, but requires significantly less computation.

TL;DR

This paper introduces a "gradient-aware" upgrade to the Progressive Probabilistic Hough Transform (PPHT), a popular algorithm for detecting lines in images. By using the direction of an edge (its gradient) to guide the voting process and pixel assignment, the authors achieve line-detection accuracy nearly identical to the standard Hough Transform while remaining significantly faster.

What Problem Does This Paper Address?

The Hough Transform (HT) is a classic computer vision tool for finding geometric shapes like lines. However, the standard version (SHT) is computationally expensive because every edge pixel "votes" for every possible line it could belong to. The Progressive Probabilistic Hough Transform (PPHT) was developed to solve this by voting on a random subset of pixels and stopping as soon as a line is "likely" found.

While PPHT is fast, it can be less accurate and more prone to noise than the SHT. It often struggles with "clutter" in the voting space and can incorrectly assign pixels to lines at T-junctions or where lines are close together. The authors aim to fix these reliability issues without sacrificing PPHT’s signature speed.

Methods

The authors propose two primary modifications to the PPHT algorithm based on gradient direction (the angle of the edge):

  1. Constrained Voting: Instead of an edge pixel (edgel) voting for all possible lines passing through it, it only votes for lines within a narrow angular range ($\gamma$) around its own gradient direction. This drastically reduces the "noise" or clutter in the accumulator space.
  2. Gradient-Aware Post-Processing: Once a potential line is identified in the accumulator, the algorithm searches a "corridor" to find the actual line segment. The authors modified this step so that an edgel is only assigned to a line if its gradient is consistent with that line’s orientation.
  3. Updated Statistical Thresholding: Because the voting process changed, the authors updated the mathematical model used to decide when a "peak" in the accumulator is statistically significant.
Figure 1: Voting operations vs. angle range $\gamma$. Restricting the voting range significantly reduces the computational load compared to unconstrained voting.

Datasets

The researchers evaluated their approach using two types of data:

  • Synthetic Data: $256 \times 256$ pixel images containing 20 lines of random lengths with added noise. This allowed for precise measurement of false positives and false negatives against a known "ground truth."
  • Real-World Video Sequences: Images of indoor scenes (specifically a "door" scene and a "shelves" scene) captured from a CCIR601 source. Edge pixels and gradients were extracted using a Deriche edge detector.

Key Insights and Ideas

  • SNR over Speed: While restricting the voting range saves some computation, its biggest benefit is increasing the Signal-to-Noise Ratio (SNR). By ignoring impossible line angles for a given pixel, the "peaks" in the voting space become much clearer.
  • The "Sweet Spot" for Uncertainty: The authors found an optimal range for the angular uncertainty ($\gamma$), typically between $30^\circ$ and $60^\circ$. If the range is too tight, the algorithm misses lines due to errors in gradient estimation; if it's too wide, noise begins to degrade performance.
Figure 5: Difference count vs. angle range $\gamma$. The plot demonstrates a clear performance "sweet spot" where detection errors are minimized.
  • Repeatability Matters: In real-world applications like robot navigation or tracking, it’s more important that an algorithm finds the same lines in consecutive frames than it is to find every single pixel perfectly. The authors used "repeatability" as a key metric for real-world data.

Key Results

  • Massive Speedup: The PPHT variants required roughly 1/10th the operations of the standard Hough Transform. Execution times for 100 frames showed the PPHT taking ~60–150ms compared to ~590–2300ms for the SHT.
  • Improved Reliability: On real-world data, incorporating 360° gradient information led to a 50% improvement in the fraction of lines successfully matched between consecutive frames (repeatability).
  • Closing the Accuracy Gap: With these modifications, the PPHT's performance came within 10% of the standard Hough Transform's accuracy, effectively providing SHT-level quality at a fraction of the computational cost.

Limitations and Future Work

  • Gradient Dependency: The algorithm's success depends on the quality of the gradient information. While most modern edge detectors provide this, the authors note that in very noisy images, gradient estimation might become a bottleneck.
  • Parameter Tuning: The uncertainty interval ($\gamma$) is a new parameter that needs to be set. While the paper shows the algorithm is robust across a range of values, users still need to choose a value appropriate for their specific edge detector.

Summary updated

BibTeX
@inproceedings{galambos2001gradient,
  author = {C. Galambos and Josef Kittler and Jiřı́ Matas},
  title = {{Gradient based progressive probabilistic Hough transform}},
  booktitle = {IEE},
  year = {2001},
  doi = {10.1049/ip-vis:20010354},
}
Figure