Automatic line matching across views

Cordelia Schmid, Andrew Zisserman

Abstract

Matching individual line segments across multiple images is a foundational yet challenging task in computer vision. Unlike point matching, line matching suffers from unstable endpoints and weaker geometric constraints. This paper proposes a robust framework that integrates geometric constraints with intensity-based cross-correlation. By modeling perspective warping in long-range motion and leveraging the trifocal tensor for three-view consistency, the method achieves high accuracy and eliminates mismatches in multi-view scenarios.

Introduction

Feature matching is a prerequisite for many computer vision applications, including 3D reconstruction, camera calibration, and object recognition. While point-based matching (e.g., corner detection) has matured, line matching remains problematic. Line segments are often fragmented by edge detectors, and their endpoints are rarely consistent across views. Furthermore, the geometric constraints for lines are less restrictive than those for points, leading to higher ambiguity.

The Challenges of Line Matching

The difficulty in matching lines stems from three primary factors:

  1. Endpoint Instability: Edge detection algorithms often fail to capture the exact start and end of a line, or they may break a single physical edge into multiple segments.
  2. Geometric Ambiguity: In two-view geometry, a point in one image is constrained to an epipolar line in the second. For an infinite line, no such constraint exists; only finite segments provide a weak overlap constraint.
  3. Perspective Distortion: Significant camera movement causes the local neighborhood of a line to undergo rotation, scaling, and foreshortening, rendering simple intensity correlation ineffective.

Methodology

Short-Range Motion Matching

For small camera displacements, the appearance of a line's neighborhood is assumed to be relatively stable. The algorithm utilizes the fundamental matrix to establish a point-to-point mapping between potential line matches. By computing a cross-correlation score for pixels along the line and applying a "winner-takes-all" strategy, the most likely match is identified.

Line matching results on an aerial image dataset.

Long-Range Motion and Perspective Warping

When camera motion is significant, the local neighborhood of a line is warped by perspective. To address this, the authors introduce a search over a "pencil of planes." A pair of matched lines across two views defines a family of possible 3D planes. Each plane corresponds to a specific homography. The algorithm searches this one-parameter space to find the transformation that maximizes the correlation of a rectangular strip adjacent to the line, effectively "un-warping" the image.

Line matching on a toy house model, demonstrating robustness to perspective changes.

Three-View Geometric Constraints

The inclusion of a third view introduces the trifocal tensor, a powerful geometric tool. A match confirmed in two images can be used to predict the exact location of the line in the third image. If no corresponding line is found at the predicted location, the match is discarded as an outlier. This mechanism significantly boosts precision.

Experimental Results

The proposed methods were evaluated on aerial urban imagery and close-up shots of a toy house.

  • Aerial Images: The short-range algorithm achieved 97.5% accuracy (122 matches).
  • Toy House: Despite severe foreshortening, the long-range algorithm maintained high performance, though accuracy decreased to 77% in extreme cases.
  • Three-View Performance: The trifocal constraint proved exceptionally effective, yielding 89 matches on aerial data with zero mismatches (100% precision).

Conclusion

By combining geometric rigor with a sophisticated treatment of image intensity and perspective warping, this framework provides a robust solution for automatic line matching. The transition from two-view to three-view geometry serves as a critical filter for outliers, enabling high-precision feature correspondence even in complex scenes. Future work may explore extending these principles to curved features and leveraging vanishing points for further constraint.

Summary updated

BibTeX
@inproceedings{schmid1997automatic,
  author = {Cordelia Schmid and Andrew Zisserman},
  title = {{Automatic line matching across views}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {1997},
  doi = {10.1109/cvpr.1997.609397},
}
Figure