Peeking behind objects: Layered depth prediction from a single image

Helisa Dhamo, Keisuke Tateno, Iro Laina, Nassir Navab, Federico Tombari · DOI

Abstract

Standard monocular depth estimation is limited to a 2.5D representation, capturing only the first visible surface. This limitation leads to significant artifacts, such as "holes" or "streaking," during novel view synthesis when foreground objects are disoccluded. We propose a method to predict a Layered Depth Image (LDI) from a single RGB image, effectively "seeing" behind foreground objects. Our approach utilizes a two-stage pipeline: a convolutional neural network for joint depth and mask prediction, followed by a GAN-based RGB-D inpainting module. By introducing a multi-modal "Pair Discriminator," we ensure that hallucinated background color and geometry remain consistent. Our results on synthetic and real-world datasets demonstrate superior performance in novel view synthesis and diminished reality applications.

Introduction

Monocular depth estimation is a cornerstone of computer vision, yet its traditional output—a single-layer depth map—is insufficient for immersive AR/VR experiences. When a user's viewpoint shifts, regions previously occluded by foreground objects become visible. Without information about these hidden surfaces, systems produce unsightly visual artifacts like stretching or empty black gaps.

While full 3D volumetric reconstruction offers a solution, it is often computationally prohibitive for real-time applications. This paper argues that the Layered Depth Image (LDI) represents a "sweet spot" between simple 2.5D maps and complex 3D volumes. An LDI stores multiple color and depth values per pixel, providing just enough extra information to handle disocclusions during small camera movements.

Proposed Methodology

The proposed system operates in two distinct phases: an offline prediction stage and an online warping stage. The core of the offline stage is a two-part neural network architecture designed to hallucinate missing data.

Joint Depth and Mask Prediction

The first stage employs a fully convolutional network, based on a ResNet-50 backbone, to simultaneously predict a standard depth map and a foreground-background segmentation mask. Joint training on these tasks allows the model to leverage the inherent relationship between object boundaries and depth discontinuities, improving the accuracy of both outputs.

Consistent RGB-D Inpainting

Once the foreground is identified and removed, the resulting "holes" in the RGB and depth channels must be filled. We utilize a Generative Adversarial Network (GAN) for this purpose. A critical challenge in multi-modal inpainting is "domain inconsistency," where the hallucinated texture does not match the hallucinated geometry. To solve this, we introduce a Pair Discriminator. Unlike standard discriminators that evaluate color or depth in isolation, the Pair Discriminator ensures that the predicted RGB-D values are mutually consistent—for instance, ensuring that a change in background texture aligns with a corresponding geometric edge.

Experiments and Results

To train and evaluate the model, we utilized several datasets including SceneNet (Synthetic), where we generated ground-truth for ~30,000 images by warping consecutive video frames to reveal background layers, and NYU Depth v2, used to validate generalization to real-world indoor environments.

Quantitative and Qualitative Performance

In ablation studies on SceneNet, our "Separate RGB and depth with pairing" model achieved a Mean Absolute Error (MAE) of 0.147 and a Structural Similarity Index (SSIM) of 0.617 for novel view synthesis. Qualitatively, our method significantly outperforms baselines like Appearance Flow. When the viewpoint is shifted, our system fills gaps with seamless textures and plausible depths, whereas previous methods often produced blurry or geometrically distorted artifacts. Because the LDI is computed once offline, the online warping for VR/AR can be done in real-time with very low overhead.

Conclusion and Future Work

We have presented a robust method for predicting layered depth from a single image, enabling high-quality novel view synthesis. Current limitations include "border effects," where the system cannot hallucinate content outside the original image frame, and difficulties with highly complex, multi-layered occlusions (e.g., foliage). Future research will explore self-supervised learning on real-world video sequences to further bridge the synthetic-to-real gap and improve robustness in cluttered environments.

Summary updated

BibTeX
@article{dhamo2019peeking,
  author = {Helisa Dhamo and Keisuke Tateno and Iro Laina and Nassir Navab and Federico Tombari},
  title = {{Peeking behind objects: Layered depth prediction from a single image}},
  journal = {Pattern Recognition Letters},
  year = {2019},
  doi = {10.1016/j.patrec.2019.05.007},
}
Figure