ParticleSfM: Exploiting Dense Point Trajectories for Localizing Moving Cameras in the Wild

Wang Zhao, Shaohui Liu, Hengkai Guo, Wenping Wang, Yong-Jin Liu

Abstract

ParticleSfM is a robust "dense indirect" Structure-from-Motion (SfM) system designed for monocular videos in dynamic, "in-the-wild" environments. By representing video motion as long-range dense point trajectories and using a novel neural network to segment static background from moving objects, it achieves state-of-the-art camera localization where traditional methods often fail.

ParticleSfM recovers smooth camera trajectories and dense 3D point clouds from monocular video.

Introduction

Estimating the position and orientation (pose) of a moving camera from a single video is a cornerstone of robotics and augmented reality. However, most existing algorithms rely on a "static world" assumption: they assume that everything in the scene is stationary except for the camera.

In the real world, this assumption is frequently violated by moving people, vehicles, or even objects being carried. When a significant portion of the pixels are moving independently, traditional SfM methods (like COLMAP) or SLAM systems (like ORB-SLAM) get "confused," leading to inaccurate trajectories or total system failure. ParticleSfM aims to solve this by explicitly modeling and segmenting motion based on how points move over time, rather than what they look like.

Methodology

The authors propose a multi-stage pipeline that moves away from simple frame-to-frame matching toward long-range temporal analysis:

  1. Dense Point Trajectory Generation: The system uses RAFT (a state-of-the-art optical flow estimator) to track pixels across frames. To prevent "drift," they introduce Path Consistency Optimization, refining pixel locations to ensure geometric consistency across multiple frames.
  2. Trajectory-based Motion Segmentation: Instead of classifying individual pixels, entire trajectories are fed into a specialized neural network. A Transformer-based encoder handles irregular trajectory lengths, while an Order-Aware Network (OANet) predicts which trajectories belong to the static background.
  3. Global Bundle Adjustment (BA): Once "moving" trajectories are filtered out, the system performs a global optimization over the remaining "static" trajectories to estimate final camera poses and a dense 3D map.

Key Results and Evaluation

ParticleSfM was evaluated on synthetic datasets like MPI Sintel and real-world datasets like ScanNet and DAVIS.

  • Superior Accuracy on Dynamic Scenes: On the MPI Sintel dataset, ParticleSfM achieved an Absolute Trajectory Error (ATE) of 0.019m, vastly outperforming COLMAP (0.145m) and DROID-SLAM (0.175m).
  • Robustness in the Wild: Qualitative results on the DAVIS dataset show that while traditional methods often fail when a person dominates the frame, ParticleSfM recovers smooth, accurate camera trajectories.
  • Competitive on Static Scenes: Even in purely static environments (ScanNet), the method outperformed DROID-SLAM in ATE (0.349m vs 0.687m), proving the robustness of the dense indirect approach.
The system maintains accuracy even in highly dynamic scenes with multiple moving people.

Conclusion

ParticleSfM demonstrates that long-range dense trajectories provide a much stronger geometric signal for distinguishing camera motion from object motion than simple frame-to-frame matching. By training on geometric coordinates rather than raw RGB images, the model generalizes remarkably well from synthetic training data to real-world "in-the-wild" videos. While currently an offline method with high computational costs, it sets a new benchmark for robust camera localization in dynamic environments.

Summary updated

BibTeX
@inproceedings{zhao2022particlesfm,
  author = {Wang Zhao and Shaohui Liu and Hengkai Guo and Wenping Wang and Yong-Jin Liu},
  title = {{ParticleSfM: Exploiting Dense Point Trajectories for Localizing Moving Cameras in the Wild}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19824-3\_31},
}
Figure