DSDNet: Raw Domain Demoiréing via Dual Color-Space Synergy

Qirui Yang, Fangpu Zhang, Yeying Jin, Qihua Cheng, Peng-Tao Jiang, Huanjing Yue, Jingyu Yang

Capturing images of digital displays often introduces distracting, wavy rainbow patterns known as moiré artifacts. While modern smartphone cameras attempt to mitigate these, standard image signal processing (ISP) pipelines—particularly the demosaicing stage—frequently amplify these patterns, leading to irreversible information loss.

In a recent study, researchers introduced DSDNet, a single-stage framework designed to remove moiré patterns directly from RAW sensor data. By employing a "dual color-space synergy," DSDNet achieves state-of-the-art restoration quality while significantly improving processing speed compared to traditional multi-stage methods.

The Challenge of Moiré in sRGB

Moiré patterns arise from frequency aliasing between a display's pixel grid and a camera's sensor. Traditional demoiréing methods operate in the sRGB domain, attempting to fix the image after it has passed through the ISP. However, the ISP's non-linear operations often exacerbate aliasing. Recent RAW-domain approaches attempted to solve this but typically relied on slow, two-stage pipelines (RAW demoiréing followed by RAW-to-sRGB conversion) that were prone to error accumulation.

DSDNet: A Single-Stage Solution

DSDNet departs from sequential processing in favor of a single-stage, dual-stream architecture that simultaneously handles demoiréing and color mapping.

  1. Dual-Stream Decoupling: The model processes input through two parallel paths: a Raw Stream for color mapping and a YCbCr Stream for structural and luminance priors.
  2. Synergic Attention with Dynamic Modulation (SADM): This module acts as a bridge, using bidirectional attention to allow RAW and YCbCr features to interact. This ensures that clean structural information from the luminance channel guides the restoration of the noisy RAW data.
  3. Luminance-Chrominance Adaptive Transformer (LCAT): In the final stage, this module decouples brightness and color, using transformer-based attention to produce an sRGB output with high structural detail and accurate color saturation.
  4. State Space Models (SSM): DSDNet utilizes SSMs to capture long-range dependencies, mimicking the line-by-line scanning process of image sensors.

Key Insights: Luminance and the ISP

A core observation of the research is that moiré artifacts cause significant luminance discrepancies in the sRGB domain. However, the Y-channel (luminance) in a direct RAW-to-YCbCr mapping is remarkably resistant to these artifacts.

Figure 3: (a) Analysis of luminance discrepancy across datasets. (b) Visual examples of moiré in RAW vs sRGB. (c) Comparison showing that RAW-to-YCbCr mapping preserves luminance structure better than sRGB-based mappings.

By bypassing the standard ISP and creating a custom RAW-to-YCbCr mapping, DSDNet avoids the "harmonic amplification" that typically makes moiré patterns difficult to remove.

Performance and Results

DSDNet was evaluated on the TMM22 and RawVDemoiré datasets, setting new benchmarks for quality and efficiency:

  • Superior Accuracy: The model improved Peak Signal-to-Noise Ratio (PSNR) by 0.47 dB on TMM22 and 0.79 dB on RawVDemoiré compared to previous state-of-the-art methods.
  • Efficiency: With an inference speed of 0.037 seconds per image, DSDNet is 2.4x faster than the leading competitor, RRID.
  • Visual Fidelity: Qualitative results demonstrate superior recovery of fine text and vibrant colors, eliminating the "ghost" patterns and gray smudges common in other methods.

Conclusion

DSDNet demonstrates that treating demoiréing and color mapping as a unified task within the RAW domain is highly effective. By leveraging the inherent stability of luminance in the RAW-to-YCbCr transition, the framework provides a fast, accurate solution for high-quality image restoration. Future work may extend this dual-stream synergy to video demoiréing to address temporal consistency challenges.

Summary updated

BibTeX
@inproceedings{yang2025dsdnet,
  author = {Qirui Yang and Fangpu Zhang and Yeying Jin and Qihua Cheng and Peng-Tao Jiang and Huanjing Yue and Jingyu Yang},
  title = {{DSDNet: Raw Domain Demoiréing via Dual Color-Space Synergy}},
  booktitle = {ACM Multimedia},
  year = {2025},
  doi = {10.1145/3746027.3754698},
}
Figure