Abstract: We present a controllable camera simulator based on deep neural networks to synthesize raw image data under different camera settings, including exposure time, ISO, and aperture. The proposed simulator includes an exposure module that utilizes the principle of modern lens designs for correcting the luminance level. It also contains a noise module using the noise level function and an aperture module with adaptive attention to simulate the side effects on noise and defocus blur. To facilitate the learning of a simulator model, we collect a dataset of the 10,000 raw images of 450 scenes with different exposure settings. Quantitative experiments and qualitative comparisons show that our approach outperforms relevant baselines in raw data synthesize on multiple cameras. Furthermore, the camera simulator enables various applications, including large-aperture enhancement, HDR, auto exposure, and data augmentation for training local feature detectors. Our work represents the first attempt to simulate a camera sensor's behavior leveraging both the advantage of traditional raw sensor features and the power of data-driven deep learning.
Introduction
In computer vision, simulating what a camera sees—geometry, lighting, and textures—is a well-established field. However, simulating how a camera sees it remains a significant challenge. The specific settings of a camera—exposure time, ISO, and aperture—drastically alter the final image by introducing noise, motion blur, and depth-of-field effects.
Traditional image generation often ignores the physical image formulation pipeline. When a photographer adjusts settings, they navigate a complex trade-off: ISO increases brightness but introduces sensor noise; aperture controls light but dictates defocus blur (bokeh); and exposure time affects luminance and can cause motion blur. Most existing simulators operate in sRGB space, where non-linear Image Signal Processor (ISP) effects like tone mapping and denoising make it nearly impossible to accurately reverse-engineer original sensor behavior. This work introduces a controllable framework to synthesize RAW data, where the relationship between light and pixel values is physically grounded and linear.
Methodology
The proposed simulator is built as a modular pipeline consisting of three specialized components designed to mimic the physical imaging process.
- Exposure Module: Instead of relying solely on neural estimation, the authors utilize physical formulas. A multiplier ($\alpha$) is calculated based on the ratios of input/output exposure times, ISOs, and f-numbers. A learnable linear regression then refines this multiplier to account for hardware-specific biases like shutter inaccuracies.
- Noise Module: This module simulates sensor noise using a Noise Level Function (NLF). It models noise as a combination of shot noise (photon arrival physics) and read noise (electronic interference). A U-Net architecture refines the noise distribution based on real-world sensor data.
- Aperture Module: To handle defocus blur, the authors introduce an Adaptive Attention mechanism. Since blur is depth-dependent, the model uses spatial and channel attention to identify which regions of an image should be blurred or have their blur magnified when the aperture size increases.
Dataset and Training
To train and validate the model, the authors collected a significant new dataset comprising 10,000 RAW images across 450 different scenes. These were captured using a Nikon Z6 mirrorless camera and a Canon 70D DSLR. Each scene includes a sequence of 20–25 images with varying ISO (100–16000), exposure times (1/8000s to 4s), and apertures (f/4.0 to f/22.0), covering both indoor and outdoor environments under lighting conditions ranging from 1 lux to 20,000 lux.
Experimental Results
The model achieved a 36.10 PSNR on the Nikon Z6 dataset, significantly outperforming standard "Parameter Concatenation" baselines (18.78 PSNR). Qualitative results demonstrate the effectiveness of each module in contributing to the final synthesized image.
Key insights from the results include:
- RAW Domain Advantage: Simulating camera effects is significantly more accurate in RAW space because the physics of light remains linear.
- Physics-Guided AI: By hard-coding physical laws of exposure, the neural network only needs to learn subtle deviations and sensor-specific quirks, leading to better global consistency.
- Cross-Camera Generalization: Models trained on Nikon data performed well on Canon data, suggesting the physical priors help the model learn camera-agnostic principles of optics.
Applications and Limitations
The simulator enables several downstream applications, such as creating high-quality HDR images from simulated multi-exposure stacks and enhancing bokeh in low-aperture shots. Furthermore, using the simulator for data augmentation improved the matching performance of local feature detectors (like D2-Net) in extreme exposure conditions.
However, limitations remain. The current model handles only static scenes and does not yet simulate motion blur. Additionally, while the simulator can magnify blur (small to large aperture), it cannot "deblur" an image (large to small aperture) because high-frequency information is physically lost during the original capture. Despite these challenges, this work provides a robust blueprint for moving toward true sensor-level simulation in computer vision.
Summary updated