Fundamental Matrices from Moving Objects Using Line Motion Barcodes

Yoni Kasten, Gil Ben-Artzi, Shmuel Peleg, Michael Werman

TL;DR

This paper introduces a robust method for calibrating cameras with wildly different viewpoints by using "Motion Barcodes"—temporal signatures that track when moving objects intersect specific lines in a video. Unlike traditional methods that struggle when objects look different from different angles or when multiple objects are present, this approach uses the timing of motion to find corresponding epipolar lines and compute the Fundamental Matrix.

What Problem Does This Paper Address?

In computer vision, "calibrating" two cameras often means finding the Fundamental Matrix, which describes the geometric relationship (epipolar geometry) between them. Standard techniques rely on matching feature points (like SIFT) between images. However, if two cameras are placed far apart—say, on opposite sides of a courtyard—the same object will look completely different in each view, making point-matching nearly impossible.

Previous "silhouette-based" solutions tried to solve this by looking at the convex hull of a moving object's silhouette. While clever, these methods break down in the real world where multiple people or objects move simultaneously. If Camera A sees three people but Camera B only sees two (due to occlusion or field-of-view), their respective convex hulls will look nothing alike, and the calibration fails.

Methods

The authors propose a shift from spatial appearance to temporal signatures. Their key tool is the Motion Barcode of a Line.

  1. Generating Barcodes: For any given line in a video, a "barcode" is a binary vector where a '1' represents a frame where a moving object intersects that line, and a '0' represents a frame where it doesn't.
  2. Matching Epipolar Lines: The core insight is that if two lines are corresponding epipolar lines, they represent the same 3D plane in space. Therefore, if a moving object passes through that plane, it must intersect both lines at the exact same time. Their barcodes should be nearly identical.
  3. Candidate Selection: The algorithm samples thousands of random lines in both cameras and computes their barcodes. It then uses normalized cross-correlation to find pairs of lines with the most similar barcodes.
  4. RANSAC for Geometry: To filter out noise, the authors use a RANSAC (Random Sample Consensus) approach. They pick candidate line pairs to estimate the epipoles (the points where camera center-lines intersect the image planes) and compute a homography between the "pencils" of epipolar lines.
  5. Traffic Filtering: To avoid false positives from objects moving along the same straight path (like a sidewalk), they create a "motion heat map" and discard lines that overlap with heavy-traffic corridors.

Datasets

The researchers evaluated their method on three datasets, all featuring 800 synchronized frames:

  • Cubes & Thin Cubes: Synthetic datasets featuring multiple flying cubes against a black background. These are challenging because there is no static background to provide traditional feature points.
  • PETS2009: A well-known real-world benchmark featuring pedestrians walking in an outdoor campus environment. This tests the algorithm's performance with noisy background subtraction and complex human motion.

Key Insights and Ideas

  • Timing over Texture: The most powerful idea here is that when something happens is often more invariant across viewpoints than what it looks like. By reducing complex silhouettes to a simple 1D temporal bitmask, the geometry becomes much easier to solve.
  • The "Pencil" of Lines: Instead of trying to find 3D points, the method finds 2D lines that belong to the same 3D epipolar plane. Three such planes are enough to define the entire fundamental matrix.
  • Handling Multi-Object Chaos: Because the method looks at individual lines rather than the global convex hull of all motion, it doesn't matter if one camera sees more objects than the other. As long as some objects cross the specific lines being compared, the correlation holds.

Key Results

The method proved highly accurate across both synthetic and real-world data:

  • Accuracy: The "Average Symmetric Epipolar Distance" (a measure of calibration error) was very low: 0.31 pixels for the Cubes dataset and 1.69 pixels for the real-world PETS2009 dataset.
  • Robustness: In the synthetic datasets, the algorithm achieved a 100% convergence rate (10/10 and 21/21 camera pairs).
  • Real-world Performance: On PETS2009, it successfully calibrated 5 out of 6 camera pairs. The high correlation between barcodes allowed them to identify 1,000 candidate line pairs, of which roughly 37% to 71% were true positives before RANSAC even started.

Limitations and Future Work

The authors identify one specific failure case: Collinear Motion. If all objects in a scene move along a single straight line (e.g., everyone walking down a very narrow hallway), and that path happens to lie on an epipolar line, the algorithm can't find a "pencil" of different lines to define the geometry. In this scenario, you get high correlation for one pair of lines, but not enough information to solve for the full matrix.

Future work could involve relaxing the requirement for perfectly synchronized cameras or exploring how this temporal matching could be used for other tasks, like object tracking across disconnected camera views.

Summary updated

BibTeX
@inproceedings{kasten2016fundamental,
  author = {Yoni Kasten and Gil Ben-Artzi and Shmuel Peleg and Michael Werman},
  title = {{Fundamental Matrices from Moving Objects Using Line Motion Barcodes}},
  booktitle = {European Conference on Computer Vision},
  year = {2016},
  url = {https://openreview.net/forum?id=r1ZSwKb_ZS},
}
Figure