Abstract
Depth estimation is an essential component in understanding the 3D geometry of a scene, with numerous applications in urban and indoor settings. These scenarios are characterized by a prevalence of human-made structures, which in most cases are either inherently piece-wise planar or can be approximated as such. We devise a novel depth refinement framework that aims at recovering the underlying piece-wise planarity of inverse depth maps. We formulate this task as an optimization problem involving a data fidelity term and a graph-based regularization that enforces piece-wise planar solutions without a priori estimation of scene planes. Extensive tests show that our method leads to significant improvements in depth refinement, both visually and numerically, on the Middlebury, KITTI, and ETH3D datasets.
Introduction
Obtaining high-quality depth information is a cornerstone of computer vision, essential for autonomous navigation and augmented reality. However, raw depth data from sensors or stereo matching algorithms is often noisy or incomplete. Traditional depth refinement techniques often rely on simple smoothness constraints that tend to blur sharp object boundaries. While some advanced methods model scenes as collections of flat planes, they typically require pre-calculated candidate planes. This paper introduces a framework that enforces planarity automatically through a graph-based approach, discovering planar structures on the fly.
Methodology
The proposed framework treats depth refinement as a global optimization problem on a weighted graph.
Inverse Depth Model
A key mathematical insight is that for a pinhole camera, a flat plane in 3D space corresponds to a linear function in inverse depth ($1/Z$) space. By optimizing for inverse depth, the complexity of fitting planes is significantly reduced, allowing for a first-order Taylor expansion to model scene geometry elegantly.
Graph-Based Regularization
The image is modeled as a weighted graph where pixels are nodes. Edges between pixels are weighted based on texture similarity and spatial proximity. This structure naturally groups pixels likely to belong to the same surface. The optimization then fits the best plane to these groups, enforcing that strongly connected pixels are assigned to the same planar equation.
Joint Optimization and Solver
The algorithm minimizes a cost function combining data fidelity (staying close to reliable original measurements) and piece-wise planar regularization. Because the regularization explicitly models the slope of the depth, the algorithm produces a high-quality surface normal map as a direct byproduct. To solve this efficiently, the authors utilize the ADAM optimizer combined with a multi-scale approach, solving at low resolutions first to guide higher-resolution refinement.
Experimental Evaluation
The framework was evaluated against state-of-the-art algorithms like the Fast Bilateral Solver and Non-Local Total Generalized Variation (NLTGV) across three benchmarks: Middlebury v3 (indoor), KITTI 2015 (outdoor driving), and ETH3D (diverse multi-view stereo).
Results
On the Middlebury "Piano" scene, the proposed method achieved a "bad 2px" error rate of 15.25%, a notable improvement over the 18.29% achieved by the previous best-performing refinement method. Qualitatively, the results demonstrate much sharper edges and cleaner surfaces on walls and floors compared to standard smoothing filters.
For the KITTI dataset, the method improved the "bad 3px" metric for stereo-derived depth maps by over 31% in specific cases, effectively cleaning up the speckle noise common in automotive sensors. The quantitative results in the table above highlight the robustness of the approach across different error metrics (bad pixels, average error, and RMS).
Conclusion
By leveraging the linear properties of inverse depth and the grouping power of weighted graphs, this framework provides a robust solution for depth refinement in human-made environments. It successfully recovers planar structures and sharp boundaries without requiring prior knowledge of the scene's geometry, outperforming existing variational and filtering-based methods.
Summary updated