Abstract
This paper introduces the Single Latent Representation (SLR) model, a novel approach to modeling Camera Response Functions (CRFs) using a simple neural network and just one latent variable. By combining autoencoders with neural architecture search and latent distribution learning, the authors created a model that is significantly more accurate than traditional methods and over twice as fast during camera calibration. The SLR model demonstrates that the complex, nonlinear mapping of scene irradiance to pixel intensities can be efficiently captured in a low-dimensional learned space, enabling high-precision radiometric calibration on resource-constrained devices.
Introduction
When a digital camera captures a scene, it does not record light linearly. Instead, it applies a complex, nonlinear mapping called a Camera Response Function (CRF) to convert scene irradiance into the pixel intensities observed in the final image. Accurately inverting this mapping—a process known as radiometric calibration—is essential for high-end computer vision tasks, including High Dynamic Range (HDR) imaging, image mosaicing, and noise removal.
Existing CRF models, such as EMoR or high-order polynomials, often rely on multiple parameters and complex optimization spaces. This complexity makes calibration computationally expensive and slow, presenting a significant hurdle for mobile devices and real-time applications. The diversity of responses across different manufacturers and models, as shown in the scatter plot of irradiance versus intensity, highlights the challenge of finding a universal yet efficient representation.
Methodology
The authors propose a deep learning-based alternative to traditional parametric models, focusing on efficiency and ease of optimization.
Autoencoder-based SLR
The core of the proposed method is a fully connected autoencoder where the bottleneck is restricted to a single latent variable ($z$). The encoder learns to compress a CRF, represented as 1024 sampled points, into this single value. Conversely, the decoder learns to reconstruct the full curve from this latent representation. This "Power of One" approach suggests that the vast diversity of real-world camera responses can be effectively captured by a single learned parameter, which is far more efficient than the 3 to 11 parameters typically required by traditional models.
Optimization and Architecture Search
To ensure the model is suitable for mobile hardware, the authors utilized several advanced techniques:
- Naïve Neural Architecture Search (NAS): A NAS algorithm was used to automatically determine the optimal number of layers and neurons, balancing reconstruction accuracy against model complexity and inference speed.
- Latent Distribution Learning (LDL): To make the latent space easy to navigate during calibration, the authors constrained the latent variable to follow a standard normal distribution using Kullback–Leibler (KL) divergence. This ensures that the search space for finding the correct camera profile is well-behaved and predictable.
- Loss Functions: The training process combined standard Mean Squared Error (MSE) for reconstruction with a "smoothness loss" to ensure the generated CRFs remain continuous and realistic.
Datasets
The study utilized two primary datasets for training and validation:
- DoRF (Database of Response Functions): A comprehensive collection of 201 real-world CRFs from various camera manufacturers, used for training the autoencoder and establishing curve-fitting benchmarks.
- Modified Middlebury Dataset: This dataset contains 112 images from 14 different cameras capturing Macbeth color charts under various exposures, serving as a real-world test for radiometric calibration performance.
Key Results
The SLR model demonstrates superior performance across several metrics:
- Superior Accuracy: In curve-fitting tests on the DoRF dataset, the SLR model achieved a Mean RMSE of 5.61E-4. This is more than ten times more accurate than popular models like Gamma or GGCM when they are restricted to a single parameter.
- Calibration Speed: During actual camera calibration, the SLR model (with LDL) completed the task in 57.4 seconds, compared to 112.6 seconds for the standard Gamma model and 138.1 seconds for the widely used EMoR model.
- High Stability: The model showed the lowest Total Variance (0.66) when calibrated using different numbers of color patches, indicating consistent results even when input data is sparse.
Conclusion and Future Work
The SLR model proves that a learned representation using a single latent variable can outperform traditional multi-parameter models in both accuracy and speed. By constraining the latent space and optimizing the architecture for efficiency, the authors have provided a practical solution for radiometric calibration on mobile devices. Future work could explore the generalization of this approach to specialized sensors in medical imaging or satellite remote sensing, and its direct integration into real-time mobile Image Signal Processor (ISP) pipelines.
Summary updated