Learned Dual-View Reflection Removal

Simon Niklaus, Xuaner Cecilia Zhang, Jonathan T. Barron, Neal Wadhwa, Rahul Garg, Feng Liu, Tianfan Xue

Abstract

Removing reflections from photographs taken through glass is a long-standing ill-posed problem in computer vision. This paper presents a learning-based solution leveraging dual-view (stereo) images, a feature increasingly common in modern smartphones. By employing a specialized reflection-invariant optical flow to align the background across views, the method effectively isolates reflections as moving signals. A synthesis network then reconstructs the clean background, significantly outperforming single-image and multi-frame baselines in both quantitative metrics and user preference.

Introduction

Capturing a clear image through a window often results in a composite image $I = T + R$, where $T$ is the desired transmission and $R$ is the unwanted reflection. Solving for $T$ is inherently difficult because each pixel contains twice as many unknowns as known values. While single-image methods rely on priors and multi-image methods require extensive camera motion, this work focuses on the "sweet spot" of dual-view photography, utilizing the simultaneous perspectives available on multi-camera devices.

Methodology

The proposed system utilizes a two-stage neural pipeline designed to handle the complexities of overlapping layers:

  1. Reflection-Invariant Optical Flow: Standard flow algorithms often produce a "compromise" motion when layers overlap. The authors trained a modified PWC-Net architecture to ignore reflections and estimate motion based solely on the transmissive background layer.
  2. Dual-View Transmission Synthesis: After aligning View 2 to View 1's background, the background remains static while the reflection exhibits parallax-induced motion. A synthesis network based on the GridNet architecture then learns to "see through" these moving components. To ensure high visual quality and avoid artifacts, the authors utilized the LPIPS (Learned Perceptual Image Patch Similarity) metric as a loss function.
Overview of the dual-view reflection removal process: (a-b) input views, (c) anaglyph showing parallax, (d) background alignment, and (e) the final result.

Datasets and Training

To overcome the lack of existing stereo reflection data, the authors developed a multi-faceted training approach:

  • Synthetic Data: 20 high-quality virtual environments rendered in Unity provided perfect ground truth for transmission and background optical flow.
  • Real-World Benchmark: A custom five-camera rig using Google Pixel phones was used to capture real-world scenes with and without glass for validation.
  • Augmentation: Random homographies were applied to real photos to improve model generalization beyond synthetic statistics.

Key Insights

  • The Power of Alignment: The core innovation is that perfect background alignment transforms reflection removal from an "un-mixing" problem into a "filtering" problem, which neural networks handle far more effectively.
  • Stereo vs. Dual-Pixel: The study confirms that the wider baseline of true stereo cameras is necessary for sufficient parallax; dual-pixel sensors provide too little depth information for effective layer separation.

Results

The proposed method achieves a PSNR of 26.60 on rendered test sets, significantly outperforming the 22.21 PSNR of leading single-image methods. Qualitatively, it successfully removes sharp, high-contrast reflections that typically cause "ghosting" or blurring in other algorithms. In a blind user study, the dual-view results were preferred over 92% of the time against various baselines.

Conclusion and Future Work

While highly effective for static scenes captured with stereo hardware, the approach has limitations. Future work could address non-linear refraction caused by thick glass and improve robustness for dynamic scenes where objects move rapidly between the two captures.

Summary updated

BibTeX
@inproceedings{niklaus2021learned,
  author = {Simon Niklaus and Xuaner Cecilia Zhang and Jonathan T. Barron and Neal Wadhwa and Rahul Garg and Feng Liu and Tianfan Xue},
  title = {{Learned Dual-View Reflection Removal}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00376},
}
Figure