On Incremental Structure-from-Motion using Lines

André Mateus, Omar Tahri, A. Pedro Aguiar, Pedro U. Lima, Pedro Miraldo · DOI

Abstract

Humans tend to build environments with structure, which consists of mainly planar surfaces. From the intersection of planar surfaces arise straight lines. Lines have more degrees-of-freedom than points. Thus, line-based Structure-from-Motion (SfM) provides more information about the environment. In this paper, we present solutions for SfM using lines, namely, incremental SfM. These approaches consist of designing state observers for a camera's dynamical visual system looking at a 3D line. We start by presenting a model that uses spherical coordinates for representing the line's moment vector. We show that this parameterization has singularities, and therefore we introduce a more suitable model that considers the line's moment and shortest viewing ray. Concerning the observers, we present two different methodologies. The first uses a memory-less state-of-the-art framework for dynamic visual systems. Since the previous states of the robotic agent are accessible -- while performing the 3D mapping of the environment -- the second approach aims at exploiting the use of memory to improve the estimation accuracy and convergence speed. The two models and the two observers are evaluated in simulation and real data, where mobile and manipulator robots are used.

Introduction

Structure-from-Motion (SfM) is the process of estimating 3D structures from a sequence of 2D images. While most SfM pipelines rely on point features, points are often scarce in human-made environments like offices or factories, which are dominated by low-texture planar surfaces. Straight lines are abundant in these settings and provide more geometric information than points. However, line-based SfM faces two major hurdles: parameterization and incremental estimation.

Geometric Modeling and Parameterization

Representing a 3D line mathematically is complex. Minimal representations (using only 4 parameters) often suffer from "singularities"—mathematical blind spots where the model breaks down, such as at the poles of a spherical coordinate system.

Geometric representation of a 3D line $\mathcal{L}$ relative to the camera center $\mathcal{O}$, showing the moment vector $\mathbf{m}$ and line direction $\mathbf{d}$.

The authors propose a two-pronged solution involving a new geometric model: the Moment-Point (M-P) Representation. Instead of using a minimal but unstable 4-parameter model, they use a 6-parameter representation. It combines the line's moment vector $\mathbf{m}$ (perpendicular to the plane formed by the line and the camera) and a scaled view ray pointing to the closest point on the line. This representation is "singularity-free," meaning it works regardless of the line's orientation.

Coordinate representations: (a) Mapping the moment vector $\mathbf{m}$ to spherical coordinates $(\theta, \phi)$; (b) Projecting the line direction $\mathbf{d}$ onto an orthonormal basis.

As shown in Figure 2, while spherical coordinates offer a way to map the moment vector, they introduce non-linearities and singularities. The proposed method instead projects the line direction onto an orthonormal basis to maintain stability and numerical robustness.

Estimation via Moving Horizon Observer

For robotics, 3D maps must be updated in real-time as the camera moves. Standard filters like the Extended Kalman Filter struggle with the highly non-linear dynamics of moving lines. The authors introduce the Moving Horizon Observer (MHO). Unlike traditional "memory-less" observers (MLO) that update estimates based only on the latest frame, the MHO maintains a buffer of the last $N$ measurements and camera velocities. It treats estimation as an optimization problem, finding the 3D line parameters that best fit the entire recent history.

This use of memory acts as a natural smoother, allowing the system to "bridge" moments of high sensor noise or poor visibility—such as when the camera moves parallel to the line, making depth temporarily unobservable. The paper provides a formal mathematical proof that the MHO's estimation error remains bounded even during these intervals.

Experimental Results

The approach was evaluated across three distinct setups:

  1. Simulation: Synthetic lines in MATLAB tested convergence and noise robustness. The MHO showed significant improvement over the MLO as measurement noise increased.
  2. MBOT Platform: An omnidirectional mobile robot equipped with a Pointgrey camera observed the edges of a chessboard pattern.
  3. Baxter Robot: A 7-degree-of-freedom industrial manipulator observed wooden boards. On this platform, the MHO achieved direction errors as low as 0.014 radians and depth errors as low as 0.001 meters, consistently outperforming the state-of-the-art MLO.

While the MHO is computationally more intensive than the MLO, it achieved a processing speed of approximately 27 frames per second (fps) for a single line, which is sufficient for standard real-time camera streams.

Conclusion

By moving from minimal parameterizations to a redundant but stable 6-parameter M-P model, and from memory-less to memory-based observers, the authors significantly improved the robustness of incremental line-based SfM. Future work will focus on improving computational scaling for multi-line environments and implementing "Active SfM," where the robot automatically chooses paths that maximize estimation accuracy through visual servoing.

Summary updated

BibTeX
@article{mateus2021incremental,
  author = {André Mateus and Omar Tahri and A. Pedro Aguiar and Pedro U. Lima and Pedro Miraldo},
  title = {{On Incremental Structure-from-Motion using Lines}},
  journal = {IEEE Transactions on Robotics},
  year = {2021},
  doi = {10.1109/tro.2021.3085487},
}
Figure