TL;DR
This paper introduces a novel deep learning approach for removing reflections from images by leveraging stereo camera pairs. By training a reflection-invariant optical flow network and a synthesis network, they achieve state-of-the-art reflection removal with the convenience of dual-view capture, outperforming existing single and multi-image methods.
What Problem Does This Paper Address?
Capturing images through reflective surfaces like glass is a common scenario, but it leads to unwanted reflections corrupting the desired image content. Traditional methods for removing these reflections fall into two categories: single-image methods, which struggle with inherent ambiguities and rely on strong priors, and multi-image methods that require users to capture many images from different viewpoints, often assuming a static scene. This creates a trade-off between ease of capture and quality. The authors aim to bridge this gap by proposing a method that uses just two synchronized views (a stereo pair), which are increasingly common on smartphones, to achieve high-quality reflection removal without the burden of extensive capture.
Methods
The proposed method is a two-stage learning-based pipeline:
- Reflection-Invariant Optical Flow: The core innovation here is a network trained to estimate optical flow specifically between the transmitted layers of the two input images, ignoring the reflections. This is achieved by training on a custom synthetic dataset that includes reflections. This "reflection-invariant" flow ensures that when the second image is warped to align with the first, only the transmitted content aligns, while reflections, due to parallax, remain misaligned. This significantly simplifies the subsequent separation task.
- Dual-View Transmission Synthesis: A second network takes the original first image and the warped second image (aligned for transmission) as input. It then synthesizes the transmitted layer of the first image. The misalignment of reflections in the warped pair, combined with the aligned transmitted content, allows this network to effectively disentangle the reflection from the transmission. The authors experimented with different loss functions, finding that the LPIPS metric, which measures perceptual similarity, yielded the best results, avoiding artifacts seen with L1 or VGG-based losses.
Datasets
- Synthetic Dataset: The authors created a novel synthetic dataset for training. This dataset consists of rendered virtual environments with ground truth transmission and optical flow. To model reflections, they used alpha blending with a translucent mirror and applied Gaussian blur to mimic depth of field.
- Augmented Real-World Data: To improve generalization to real scenes, they augmented their synthetic data with real-world images. This involved blending two images and applying homography transforms to simulate parallax, and also adding synthetic bright spots to mimic real-world light sources.
- Real-World Test Set: A real-world dataset was collected using a rig of five synchronized Google Pixel phones. This allowed for capturing stereo pairs with various types of glass and scenes. Ground truth transmission was obtained by capturing images without glass, and affine transforms were used to align images captured through glass.
Key Insights and Ideas
- Parallax as the Key: The fundamental insight is that the parallax between stereo views is a powerful cue for separating reflections from transmission. Reflections, being at a different depth, will exhibit different motion than the transmitted scene when the viewpoint changes.
- Reflection-Invariant Flow is Crucial: Directly applying standard optical flow to images with reflections leads to a compromise that hinders reflection removal. Training a flow network to ignore reflections is essential for effective alignment of the transmitted layers.
- Dual-View is the Sweet Spot: The paper demonstrates that using just two views offers a compelling balance between the simplicity of single-image methods and the complexity of multi-image methods, making it practical for everyday users.
- Perceptual Loss for Synthesis: The choice of loss function for the synthesis network significantly impacts visual quality. LPIPS proved superior to L1 or VGG-based losses in producing artifact-free, perceptually pleasing results.
Key Results
- Quantitative Performance: The proposed dual-view approach outperforms existing single-frame and multi-frame reflection removal algorithms on both rendered and real-world test sets, achieving higher PSNR, SSIM, and LPIPS scores.
- User Study Preference: In user studies, participants overwhelmingly preferred the results of the proposed method over baselines, highlighting its superior visual quality, even when quantitative metrics were similar.
- Robustness: The reflection-invariant flow network showed improved accuracy on images with reflections compared to a network trained without them.
- Comparison to Dual-Pixel: The method is shown to be significantly more effective than a recent dual-pixel reflection removal technique when applied to stereo data, indicating that dual-pixel and stereo data have distinct photometric properties.
Limitations and Future Work
- Limitations: The paper acknowledges that the dual-pixel method performs poorly on their stereo data, suggesting that dual-pixel and stereo data require distinct problem formulations. While their synthetic data augmentation helps, a gap between synthetic and real-world data may still exist.
- Future Work: The authors suggest that their approach could be extended to more complex scenarios. The paper also implicitly points towards the need for more robust and generalizable datasets for reflection removal tasks.
Summary updated