A Categorized Reflection Removal Dataset with Diverse Real-world Scenes

Chenyang Lei, Xuhua Huang, Chenyang Qi, Yankun Zhao, Wenxiu Sun, Qiong Yan, Qifeng Chen

TL;DR

This paper introduces CDR (Categorized, Diverse, and Real-world), a large-scale dataset designed to benchmark single-image reflection removal algorithms under realistic conditions. By leveraging a novel RAW-space subtraction pipeline, the authors eliminate the pixel-misalignment issues caused by glass refraction that plagued previous datasets. Their evaluation reveals a critical blind spot in state-of-the-art models: while they handle blurry reflections well, they fail dramatically when encountering sharp, real-world reflections.

What Problem Does This Paper Address?

When you take a photo through a window, you often end up with an unwanted reflection superimposed on your target scene. Single-image reflection removal (SIRR) aims to separate this mixed image ($M$) into a background transmission layer ($T$) and a reflection layer ($R$).

While deep learning models perform exceptionally well on synthetic data, their performance plummets in the real world. This generalization gap exists because existing datasets are either too small, captured in highly controlled lab environments, or suffer from spatial misalignment. As shown in Figure 2, when researchers try to capture the ground-truth background ($B$) by removing the glass, light refraction creates a spatial shift and intensity difference between $B$ and the true transmission ($T$). Furthermore, prior datasets failed to categorize reflections by their physical properties (e.g., sharpness or intensity), making it difficult to diagnose exactly why certain algorithms fail in the wild.

Figure 2. Due to refraction, spatial shift and intensity difference exist between B and T. The difference map visualizes the mis- alignment between B and T. The sum of the reflection R and the transmission T equals to the mixed image M in the raw data space.

Methods

To overcome the misalignment problem, the authors adopted an M-R data collection pipeline executed entirely within the camera's RAW data space.

  1. Data Acquisition: The camera is locked on a tripod using manual settings (fixed ISO and exposure). To capture the reflection layer ($R$), a black cloth is placed directly behind the glass to block all background transmission. The cloth is then removed to capture the mixed image ($M$).
  2. RAW-Space Subtraction: Instead of capturing the background physically, the transmission layer is calculated mathematically: $$T = M - R$$ Crucially, this subtraction is performed in the RAW data space. Because RAW sensor data is linearly proportional to light intensity, the superposition principle ($M = T + R$) holds perfectly. Doing this in standard RGB or Gamma-corrected space introduces severe non-linear artifacts (see Figure 6).

  3. Post-Processing: After subtraction, the RAW triplets ($M, R, T$) are processed using a unified, custom Image Signal Processing (ISP) pipeline to convert them into standard RGB images, ensuring no artificial discrepancies are introduced between layers.

Operating in the non-linear RGB or Gamma spaces leaves undesirable residuals, whereas RAW-space subtraction yields clean results.

Datasets

The authors introduce the CDR dataset, which consists of 1,063 image triplets ($M, R, T$) captured across diverse real-world environments using three different devices: a Canon EOS 50D DSLR, a Nikon Z6 mirrorless camera, and a Huawei Mate30 smartphone.

To ensure diversity, the dataset includes over 200 distinct glass types, including curved and colored glass, as well as dynamic transmission scenes (see Figure 3). The dataset is explicitly categorized based on three criteria:

  • Smoothness: Divided into Blurry Reflection/Sharp Transmission (BRST), Sharp Reflection/Sharp Transmission (SRST), and Blurry Reflection/Blurry Transmission (BRBT).
  • Relative Intensity: Categorized into weak, moderate, or strong reflections.
  • Ghosting Effect: Images exhibiting double-reflection artifacts.
Examples from the CDR dataset showcasing its diversity, including curved glass, colored glass, and dynamic scenes.

Key Insights and Ideas

  • The "Sharp Reflection" Blindspot: Nearly all state-of-the-art learning-based methods assume that reflections are out-of-focus (blurry). However, in the real world, sharp reflections (SRST) are incredibly common, making up roughly 50% of the CDR dataset.
  • Synthetic Data is Flawed: Models trained purely on simplified synthetic data fail to generalize because they cannot distinguish between a sharp reflection layer and the background transmission layer.
  • Real Data Matters: Algorithms trained on real-world data (like Wei et al. and CoRRN) or physically-based rendering pipelines (Kim et al.) consistently outperform those trained on naive synthetic mixtures.

Key Results

The authors benchmarked 10 baseline reflection removal methods on the CDR dataset using PSNR, SSIM, and NCC metrics.

  • The Smoothness Gap: As illustrated in Figure 1, while most algorithms successfully mitigate blurry reflections (BRST), their performance degrades heavily on sharp reflections (SRST). For instance, the top-performing model by Kim et al. achieves a PSNR of 22.61 on blurry reflections but drops to 19.27 on sharp reflections.
  • Intensity Sensitivity: Reflection removal becomes exponentially more difficult as reflection intensity increases. On "Strong R" subsets, the PSNR for almost all models drops below 17 dB, with some falling as low as 8.89 dB.
Figure 1. The performance of existing methods on different types of reflection is quite different. Most algorithms can remove the blurry reflection but cannot remove the sharp reflection well.

Limitations and Future Work

While the CDR dataset provides a massive leap forward in data quality and alignment, the authors note a few open challenges:

  • RAW vs. RGB Processing: The dataset provides RAW images, but it remains an open question whether feeding RAW data directly into reflection removal networks inherently improves their performance.
  • The Ambiguity of Sharpness: Disentangling a sharp reflection from a sharp background remains an algorithmic bottleneck. Future work must focus on relaxing the strong "blurry reflection" assumptions that currently limit single-image reflection removal models.

Summary updated

BibTeX
@misc{lei2021categorized,
  author = {Chenyang Lei and Xuhua Huang and Chenyang Qi and Yankun Zhao and Wenxiu Sun and Qiong Yan and Qifeng Chen},
  title = {{A Categorized Reflection Removal Dataset with Diverse Real-world Scenes}},
  year = {2021},
  eprint = {2108.03380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.03380},
}
Figure