Abstract
Photographing digital screens often introduces Moiré patterns—complex, rainbow-like artifacts caused by the interference between the camera's sensor grid and the screen's pixel lattice. These patterns are difficult to remove because they vary in scale, color, and shape depending on the camera's distance and angle. This paper presents the Multi-scale convolutional network with Dynamic feature encoding (MDDM), a novel architecture designed to address these challenges. By processing images across six resolution scales and employing a Dynamic Feature Encoding (DFE) module based on Adaptive Instance Normalization (AdaIN), MDDM effectively captures and removes Moiré artifacts while preserving fine image details. The method achieved state-of-the-art performance, placing 2nd for fidelity in the AIM 2019 Demoireing Challenge.
Introduction
With the ubiquity of smartphones, capturing images of digital displays (laptops, TVs, and monitors) has become a common practice. However, these images are frequently degraded by Moiré patterns. Unlike standard image noise or blur, which are typically uniform and high-frequency, Moiré patterns are dynamic and multi-scale. They pollute both low-frequency bands (broad color stripes) and high-frequency bands (fine textures), making them particularly resistant to traditional restoration networks designed for static noise.
To overcome these hurdles, the proposed MDDM architecture focuses on two key requirements: the ability to handle multi-frequency interference and the flexibility to adapt to the unique "style" of Moiré present in any given photograph.
Methodology
Multi-scale Residual Network
To capture Moiré patterns across all frequency bands, MDDM utilizes a pyramid-like structure that splits the input image into six distinct resolution scales, ranging from the original size down to 1/32 scale. This multi-scale approach allows the network to address different aspects of the degradation:
- Lower resolutions focus on the broad, low-frequency Moiré stripes that span large areas of the image.
- Higher resolutions are dedicated to preserving and restoring fine details and sharp edges.
Rather than using a simple average of these branches, the network includes a learned scaling module. This module automatically determines the optimal weighting for each resolution branch during the final reconstruction process, ensuring that the most relevant features are prioritized.
Dynamic Feature Encoding (DFE)
Because Moiré patterns change dynamically based on the camera's physical orientation, a static filter is often insufficient. The authors introduce the Dynamic Feature Encoding (DFE) module, a lightweight bypass branch integrated at each scale.
Inspired by techniques in arbitrary style transfer, the DFE module calculates the statistical properties—specifically the mean and variance—of the Moiré pattern in the input. It then uses Adaptive Instance Normalization (AdaIN) to dynamically adjust the parameters of the main restoration network. This allows the model to "characterize" the specific interference pattern of a photo and subtract it effectively, treating the Moiré as a dynamic texture or "style" that needs to be removed.
Key Insights
- Cross-Domain Innovation: The use of AdaIN—a technique traditionally used to apply artistic styles to photos—for noise removal is a significant conceptual leap. It allows the network to adapt to the specific characteristics of the Moiré in real-time rather than relying on a one-size-fits-all solution.
- Efficiency of DFE: Ablation studies demonstrate that the DFE module is remarkably efficient. Despite adding negligible computational overhead or parameter count, the module improved image quality by over 3 dB in PSNR, representing a massive gain in restoration fidelity.
- Learned Reconstruction: The network's preference for higher-resolution branches during reconstruction suggests that while the lower branches are essential for identifying and neutralizing large-scale patterns, the final output relies heavily on the high-frequency branches to maintain image crispness.
Experimental Results
Quantitative Performance
MDDM was evaluated using the LCDMoire dataset from the AIM 2019 Demoireing Challenge. The model achieved a Peak Signal-to-Noise Ratio (PSNR) of 42.49 dB and a Structural Similarity Index (SSIM) of 0.994. These results significantly outperformed existing state-of-the-art methods:
- DnCNN: 29.08 dB
- MSFE: 36.66 dB
- Sun et al.: 37.41 dB
Qualitative Performance
Visually, MDDM demonstrates a superior ability to remove Moiré artifacts without introducing the common side effects seen in other models, such as residual color blotches or the blurring of underlying text. The model's ability to maintain the integrity of the original screen content while stripping away the interference lattice was a key factor in its competitive success.
Conclusion
The MDDM architecture represents a significant advancement in image demoireing by combining multi-scale processing with dynamic feature adaptation. By repurposing style transfer technology for restoration, the authors created a model that is both highly effective and computationally efficient in its encoding. While the multi-branch structure increases the overall computational load (GFLOPs), the performance gains suggest that MDDM provides a robust framework for high-fidelity image restoration in challenging, real-world scenarios.
Summary updated