Simultaneous multi-body stereo and segmentation

Guofeng Zhang, Jiaya Jia, Hujun Bao

Abstract

We present a unified framework for simultaneously estimating dense depth maps and performing motion segmentation for multiple independently moving rigid objects in monocular video. Traditional methods often treat depth estimation and motion segmentation as separate, sequential steps, leading to a "chicken-and-egg" problem where errors in one task propagate to the other. Our approach couples depth and segmentation into a single "expanded labeling" set within a global energy minimization framework. By leveraging multi-body structure-from-motion, adaptive frame selection for occlusions, and plane fitting for textureless regions, we achieve high-quality 3D reconstructions and precise pixel-level segmentation on challenging real-world sequences.

Introduction

Reconstructing static scenes using Multi-View Stereo (MVS) is a well-established field. However, these algorithms typically fail when scenes contain multiple objects moving independently, such as vehicles in traffic. Historically, researchers treated depth estimation and motion segmentation as isolated problems. This creates a circular dependency: accurate segmentation is required to determine an object's motion, yet accurate motion and depth data are necessary to segment an object from its background. This paper addresses the challenge of producing dense 3D reconstructions and precise segmentation for "ubiquitous scenes" where objects are not pre-segmented and frequently occlude one another.

Methods

The core of the proposed method is a global energy minimization framework that treats depth and segmentation as a joint optimization problem.

Geometric representation of the multi-body stereo problem, showing the relationship between 3D points, camera views, and projected coordinates across multiple moving bodies.

Key components of the framework include:

  • Expanded Labeling Set: Instead of solving for depth ($d$) and object ID ($k$) separately, a single label $L$ encodes both. This prevents the accumulation of errors that occurs when these variables are calculated in isolation.
  • Multi-body Structure-from-Motion (SfM): As a pre-processing step, the system tracks features to estimate the relative camera motion for each independent rigid body.
  • Adaptive Frame Selection & Labeling Prior: To handle occlusions, the algorithm identifies which frames a pixel is visible in. For occluded pixels, a "hole-filling" algorithm infers labels from neighboring visible pixels using a spatial Gaussian falloff.
  • Multi-Body Plane Fitting: To handle textureless regions where stereo matching usually fails, the authors initialize the process by fitting 3D planes to color segments within the multi-body context.
  • Two-Pass Iterative Optimization: The objective function is solved using loopy Belief Propagation (BP) in a two-pass scheme to ensure temporal consistency across the video sequence.

Results and Discussion

The framework was evaluated on several challenging real-world video sequences, including a "Three-body" sequence with independent human motion, a "Boxes" sequence with complex occlusions, and a "Car" sequence featuring strong reflections and cast shadows.

Joint depth estimation and segmentation results. (a-b) Input frames. (c-d) The resulting dense depth map and sharp segmentation mask, illustrating the framework's ability to handle object boundaries and occlusions.

The method demonstrates qualitative excellence, producing spatio-temporally consistent depth maps and sharp object masks even under complex occlusions. Unlike previous methods that resulted in "fuzzy" or coarse segments, this approach maintains high accuracy at object boundaries. While computationally intensive—taking approximately 10 minutes per frame on a 2.66 GHz CPU—the trade-off is justified by the density and quality of the output.

Conclusion

The primary insight of this work is that depth and segmentation are mutually informative. A pixel's depth is constrained by the motion parameters of the object it belongs to; conversely, pixels with similar motion and depth likely belong to the same object. While currently limited to rigid objects and sensitive to color constancy violations (e.g., specularities), the framework provides a robust foundation for multi-body scene understanding. Future work will focus on extending these principles to handle non-rigid deformations.

Summary updated

BibTeX
@inproceedings{zhang2011simultaneous,
  author = {Guofeng Zhang and Jiaya Jia and Hujun Bao},
  title = {{Simultaneous multi-body stereo and segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2011},
  doi = {10.1109/iccv.2011.6126322},
}
Figure