NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A learning-based framework for depth ordering

Zhaoyin Jia, Andrew C. Gallagher, Yao-Jen Chang, Tsuhan ChenCVPR 2012

Abstract

Estimating the relative depth of objects in a single 2D image is a fundamental challenge in computer vision. While humans easily perceive which objects are in front of others, automated systems often struggle with noisy local cues and geometric inconsistencies. This paper introduces a learning-based framework that combines local junction and boundary features with a global Markov Random Field (MRF) optimization. This approach effectively resolves contradictory local depth estimates to produce a consistent, "Escher-free" 3D interpretation of a scene.

The Challenge: Local Ambiguity and Depth Loops

Traditional computer vision often focuses on absolute depth estimation. However, humans are naturally adept at depth ordering—identifying that a mouse sits atop a book, which in turn rests on a table. Automating this process is difficult because local cues, such as T-junctions where one edge disappears behind another, are frequently ambiguous or noisy.

Figure 5: The problem of depth loops. (a) An Escher-like impossible waterfall. (b) Overlapping segments. (c) A contradictory depth loop (A > B > C > D > A) that the proposed global optimization aims to prevent.

A major pitfall in simple depth-ordering systems is the creation of "depth loops" (e.g., A > B > C > A), resulting in a geometrically impossible scene similar to an M.C. Escher drawing. This research bridges the gap between local image features and a globally consistent 3D structure.

Proposed Methodology

The authors propose a multi-stage pipeline that transitions from local pixel analysis to global geometric reasoning:

  1. Local Feature Extraction:
    • Junction Features (pJF): The system identifies T-junctions and analyzes boundary angles. It incorporates oriented SIFT descriptors to capture texture and appearance, recognizing that geometry alone is often insufficient.
  2. Boundary Features (pBF): A "boundary convexity" feature is introduced; boundaries bending toward a segment suggest that segment is likely the background (occluded) object.
  3. Global Reasoning via MRF: To eliminate contradictory loops, the scene is modeled as a Markov Random Field. Nodes represent junctions, and labels represent possible depth permutations. Tree Reweighted Decomposition (TRW) is used to find a globally optimal, consistent ordering.
  4. Occlusion Boundary Detection: The system improves initial segmentation by explicitly enforcing "closed loops" and long edges, reasoning that real objects are usually enclosed by continuous boundaries rather than fragmented lines.
Figure 3: The depth ordering pipeline. (a) Original image. (b) Segmented regions with identified junctions and edges. (c) The resulting directed acyclic graph (DAG) representing the final depth hierarchy.

Datasets and Evaluation

The framework was evaluated on three distinct datasets:

  • Synthetic (syn): 2,000 images of overlapping abstract shapes with perfect ground-truth segmentation.
  • Occlusion Dataset (occ): 100 outdoor images with human-labeled segments and quantized depth.
  • New Depth-Order Dataset (d-order): A key contribution featuring 1,087 images of daily objects with ground-truth depth captured via a Kinect sensor, providing a robust real-world benchmark.

Key Insights

  • Texture Matters: Including texture (SIFT) at junctions significantly improves the ability to distinguish which side of a T-junction is the foreground object compared to using geometry alone.
  • Convexity as a Cue: The observation that boundaries tend to "wrap around" foreground objects is formalized into a highly effective feature for depth inference.
  • Global Over Local: Treating depth as a graph optimization problem allows the system to "overrule" a high-confidence local error if it creates a global contradiction like a depth loop.
  • Segmentation Integrity: By rewarding boundaries that form closed circuits, the researchers achieved much cleaner object segmentations, a vital prerequisite for accurate ordering.

Results and Conclusion

The "Global" model achieved 95.4% accuracy on synthetic data and 91.7% accuracy on the real-world "d-order" dataset (using ground-truth segmentation), outperforming rule-based baselines by roughly 10-20%. The MRF optimization successfully eliminated depth loops in complex scenes, producing a clear hierarchical ordering from foreground to background.

Future work aims to reduce the dependency on initial segmentation quality and incorporate high-level semantic context (e.g., knowing that the "sky" is always in the background) to further refine the 3D interpretation of complex scenes.

Summary updated

BibTeX
@inproceedings{jia2012learning,
  author = {Zhaoyin Jia and Andrew C. Gallagher and Yao-Jen Chang and Tsuhan Chen},
  title = {{A learning-based framework for depth ordering}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2012},
  doi = {10.1109/cvpr.2012.6247688},
}
Figure