Skip to main content
QUICK REVIEW

[Paper Review] Raw Bayer Pattern Image Synthesis for Computer Vision-oriented Image Signal Processing Pipeline Design

Wei Zhou, Xiangyu Zhang|arXiv (Cornell University)|Oct 25, 2021
Generative Adversarial Networks and Image SynthesisComputer Science6 citations
TL;DR

This paper proposes a GAN-based method to synthesize high-quality, arbitrary-size RAW Bayer pattern images from color images by leveraging invertible transformations, specifically demosaicing, to improve training stability and generative performance. The approach enables end-to-end computer vision pipelines using RAW images, achieving near-identical detection accuracy to models trained on real RAW data, thus enabling ISP co-design and in-sensor computing.

ABSTRACT

In this paper, we propose a method to add constraints that are un-formulatable in generative adversarial networks (GAN)-based arbitrary size RAW Bayer image generation. It is shown theoretically that by using the transformed data in GAN training, it is able to improve the learning of the original data distribution, owing to the invariant of Jensen-Shannon (JS) divergence between two distributions under invertible and differentiable transformation. Benefiting from the proposed method, RAW Bayer pattern images can be generated by configuring the transformation as demosaicing. It is shown that by adding another transformation, the proposed method is able to synthesize high-quality RAW Bayer images with arbitrary size. Experimental results show that images generated by the proposed method outperform the existing methods in the Fréchet inception distance (FID) score, peak signal to noise ratio (PSNR), and mean structural similarity (MSSIM), and the training process is more stable. To the best knowledge of the authors, there is no open-source, large-scale image dataset in the RAW Bayer domain, which is crucial for research works aiming to explore the image signal processing (ISP) pipeline design for computer vision tasks. Converting the existing commonly used color image datasets to their corresponding RAW Bayer versions, the proposed method can be a promising solution to the RAW image dataset problem. We also show in the experiments that, by training object detection frameworks using the synthesized RAW Bayer images, they can be used in an end-to-end manner (from RAW images to vision tasks) with negligible performance degradation.

Motivation & Objective

  • To address the lack of large-scale, open-source RAW Bayer image datasets essential for computer vision and ISP pipeline research.
  • To enable end-to-end training of vision models directly on RAW Bayer images, bypassing standard ISP pipelines.
  • To develop a stable, high-fidelity image synthesis method that preserves the statistical and structural properties of real RAW images.
  • To explore the feasibility of using synthesized RAW images for optimizing ISP pipelines tailored to specific vision tasks.
  • To support in-sensor computing by enabling direct use of RAW sensor data in vision algorithms, reducing computational overhead.

Proposed method

  • The method uses invertible and differentiable transformations—specifically, demosaicing—to map RAW Bayer images into a transformed space where GAN training is more stable and effective.
  • It leverages the invariance of Jensen–Shannon (JS) divergence under invertible transformations to improve generator learning of the original data distribution.
  • The generator is trained on transformed data (demosaiced images), and the inverse transformation is applied to reconstruct high-quality RAW Bayer images.
  • The architecture incorporates modules specifically designed to preserve the spatial and color structure of the Bayer pattern, enhancing image fidelity.
  • The method supports arbitrary image size synthesis by configuring the transformation pipeline appropriately.
  • The approach enables reversible data generation, allowing conversion of existing color image datasets into corresponding RAW Bayer versions.

Experimental results

Research questions

  • RQ1Can invertible transformations improve GAN training stability and performance in RAW Bayer image synthesis?
  • RQ2Can synthesized RAW Bayer images achieve comparable performance to real RAW images in downstream computer vision tasks?
  • RQ3To what extent can synthesized RAW images support end-to-end vision pipelines without ISP processing?
  • RQ4How does the proposed method compare to existing GAN-based approaches in terms of FID, PSNR, and MSSIM metrics?
  • RQ5Can the method generate high-quality RAW Bayer images of arbitrary size from standard color image datasets?

Key findings

  • The proposed method achieves superior FID, PSNR, and MSSIM scores compared to existing methods under identical training conditions.
  • Object detection models trained on synthesized RAW Bayer images achieve AP scores of 69.19 (Faster R-CNN), 63.33 (SSD300), and 70.86 (Yolo-v3) on the same dataset, closely matching performance on real RAW data.
  • When evaluated on real RAW Bayer images, models trained on synthesized data show negligible performance degradation, with AP scores of 68.81 (Faster R-CNN), 63.21 (SSD300), and 70.82 (Yolo-v3).
  • Detection failure rates drop significantly when using synthesized RAW data—e.g., missed detection of small or dark objects is reduced compared to models trained on color images.
  • The method enables end-to-end object detection directly on RAW Bayer images, avoiding ISP pipeline-induced performance degradation.
  • The training process is more stable than baseline GANs, as confirmed by consistent metric improvements and reduced training divergence.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.