Polarized Reflection Removal With Perfect Alignment in the Wild

Chenyang Lei, Xuhua Huang, Mengdi Zhang, Qiong Yan, Wenxiu Sun, Qifeng Chen

Abstract

We present a novel formulation to removing reflection from polarized images in the wild. We first identify the misalignment issues of existing reflection removal datasets where the collected reflection-free images are not perfectly aligned with input mixed images due to glass refraction. Then we build a new dataset with more than 100 types of glass in which obtained transmission images are perfectly aligned with input mixed images. Second, capitalizing on the special relationship between reflection and polarized light, we propose a polarized reflection removal model with a two-stage architecture. In addition, we design a novel perceptual NCC loss that can improve the performance of reflection removal and general image decomposition tasks. We conduct extensive experiments, and results suggest that our model outperforms state-of-the-art methods on reflection removal.

Introduction

Removing reflections from photos taken through glass is a classic ill-posed problem in computer vision. For every pixel, the camera captures a mixture ($M$) of the background scene (transmission, $T$) and the reflected scene ($R$). Traditionally, researchers have struggled with two major issues: the "Alignment Gap" in training data and simplistic assumptions about glass properties in real-world scenarios.

The Alignment Gap

Most existing datasets rely on a "ground truth" image taken without the glass. However, glass is not merely transparent; it refracts light, causing a spatial shift and dimming the background. This misalignment between the input mixed image and the reflection-free ground truth confuses machine learning models, leading to blurry or artifact-heavy results.

Illustration of the misalignment issue caused by glass refraction and the proposed M-R data collection strategy.

Methodology

The proposed approach leverages polarization information to distinguish between transmitted and reflected light. Since reflected light is often partially polarized, it provides a physical fingerprint that aids in image decomposition.

Two-Stage Architecture

The model employs a two-stage pipeline:

  1. RNet: Estimates the reflection ($R$) from the input.
  2. TNet: Reconstructs the transmission ($T$) using the estimated reflection and the original mixture.

Input Features and Polarization Priors

Instead of standard RGB, the model utilizes 8 channels, including four images from different polarization angles ($0^\circ, 45^\circ, 90^\circ, 135^\circ$) and calculated physical properties like the degree of polarization ($\rho$) and angle of polarization ($\phi$). The degree of polarization is typically higher for reflected light, providing a stronger cue than simple visual features like blurriness.

Polarization information used as input features, including the degree of polarization (ρ) and angle of polarization (φ).

Perceptual NCC Loss

To further improve separation, the authors introduce a Perceptual Normalized Cross-Correlation (PNCC) loss. This loss function ensures that the estimated reflection and transmission components are mathematically dissimilar at a feature level, effectively preventing "ghost" reflections from appearing in the final output.

The M-R Dataset

To solve the alignment problem, the researchers developed the M-R Dataset, consisting of 807 sets of images across over 100 types of glass. Their key innovation is the "M-R strategy":

  • Perfect Alignment: Instead of removing the glass to get ground truth, they cover the back of the glass with black cloth to capture only the reflection ($R$).
  • Raw Space Linearity: By working in raw sensor space, the relationship $M = R + T$ holds linearly. Thus, the perfectly aligned transmission ground truth is calculated as $T = M - R$.

Key Results

The proposed model significantly outperforms state-of-the-art methods. On the M-R dataset, it achieved a PSNR of 34.62, a substantial improvement over the previous best of 31.91. Qualitatively, the model excels at removing sharp, high-contrast reflections and remains robust even with curved glass or non-ideal lighting conditions.

Limitations and Future Work

While highly effective, the method currently requires specialized polarization sensors (e.g., Sony IMX250MZR), which are not yet common in consumer devices. Additionally, the data collection process requires static scenes. Future research may explore applying the M-R formulation and PNCC loss to other decomposition tasks, such as lens flare removal.

Summary updated

BibTeX
@inproceedings{lei2020polarized,
  author = {Chenyang Lei and Xuhua Huang and Mengdi Zhang and Qiong Yan and Wenxiu Sun and Qifeng Chen},
  title = {{Polarized Reflection Removal With Perfect Alignment in the Wild}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=UzTBAvjIB7J},
}
Figure