Learning Lens Blur Fields

Esther Y. H. Lin, Zhecheng Wang, Rebecca Lin, Daniel Miau, Florian Kainz, Jiawen Chen, Xuaner Zhang, David B. Lindell, Kiriakos N. KutulakosIEEE TPAMI 2023 · DOI

Introduction

In computational photography, the Point Spread Function (PSF) is a fundamental concept describing how an optical system maps a point of light in a scene to a distribution of light on a sensor. Ideally, this mapping is a single pixel; in practice, diffraction, defocus, and lens aberrations create a "blur" that varies significantly across multiple dimensions. Modeling this blur is critical for tasks like deblurring, depth estimation, and realistic image synthesis. However, the PSF is inherently high-dimensional, changing with sensor coordinates $(x, y)$, focus settings $(f)$, object depth $(d)$, and even wavelength.

Traditional modeling approaches often fall short. Parametric models, such as Gaussian kernels, are too simplistic to capture the complex, asymmetric aberrations of real-world lenses. Conversely, non-parametric grid-based methods suffer from the "curse of dimensionality," requiring massive amounts of storage and dense, difficult-to-acquire calibration data.

The Lens Blur Field Representation

This paper introduces the Lens Blur Field, a continuous, high-dimensional neural representation of a camera's PSF. Instead of a discrete grid, the authors parameterize the PSF as a coordinate-based multilayer perceptron (MLP). The network takes as input the 5D or 6D coordinates—sensor position $(x, y)$, focus distance $(f)$, target distance $(d)$, and PSF offset $(u, v)$—and outputs the corresponding intensity value.

The Lens Blur Field optimization pipeline and image formation model.

As shown in the figure above, the training process involves a differentiable image formation pipeline. By knowing the "ground truth" albedo $A(p)$ of a calibration pattern displayed on a monitor, the system can simulate the effects of perspective projection, lens distortion, and radiometric compensation. The MLP-based PSF is then convolved with this predicted sharp image to produce a blurry estimate. The weights of the MLP are optimized by minimizing the loss between this predicted blurry image and the actual captured frame.

Data Acquisition and Calibration

To "fingerprint" a specific lens, the authors utilize a practical, low-cost setup consisting of a camera on a tripod facing a high-resolution 4K monitor. The monitor displays structured noise patterns—unstructured textures with controlled frequency content—which provide the necessary signal to recover the PSF across the field of view.

The authors evaluated this method across a diverse range of hardware, including flagship smartphones (iPhone 12/14 Pro, Google Pixel 4) and professional SLR lenses. Notably, for the Pixel 4, they modeled the separate "left-looking" and "right-looking" fields of the dual-pixel sensor, revealing that real-world dual-pixel PSFs deviate significantly from idealized theoretical models.

Key Results and Insights

The Lens Blur Field demonstrates significant improvements over existing state-of-the-art calibration methods. Qualitatively, the neural representation captures intricate optical details, such as the specific aperture shapes and asymmetric aberrations unique to individual lens units.

Qualitative comparison of the proposed Lens Blur Field against ground truth and baseline methods for dual-pixel PSFs.

As illustrated in the comparison above, the proposed method accurately reconstructs the PSF across different focus planes (front, target, behind), whereas previous methods like Joshi et al. or Mannan & Langer often produce artifacts or fail to capture the correct shape. Quantitatively, the method achieves higher PSNR and lower RMSE in both simulation and real-world validation.

Beyond accuracy, the neural representation offers extreme storage efficiency. For an iPhone 12 Pro, a discretely sampled 5D PSF would require approximately 9.3 GB of data. The equivalent Lens Blur Field MLP compresses this information into just 19.1 MB—a nearly 500x reduction. This efficiency makes it feasible to ship device-specific "optical fingerprints" for on-device computational photography.

Conclusion and Future Work

The Lens Blur Field provides a powerful new tool for modeling the complex realities of modern optics. By treating the PSF as a continuous neural field, the authors overcome the limitations of discrete sampling and simple parametric models. This approach not only enables better image restoration but also allows for the synthesis of highly realistic bokeh effects in computer graphics.

Future research directions include extending the model to capture hyperspectral or polarization-dependent blur and developing "blind" versions of the algorithm that can learn a device's blur field from natural, unstructured images captured "in the wild."

Summary updated

BibTeX
@misc{lin2023learning,
  author = {Esther Y. H. Lin and Zhecheng Wang and Rebecca Lin and Daniel Miau and Florian Kainz and Jiawen Chen and Xuaner Zhang and David B. Lindell and Kiriakos N. Kutulakos},
  title = {{Learning Lens Blur Fields}},
  year = {2023},
  eprint = {2310.11535},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.11535},
}
Figure