Revisiting PSF models: unifying framework and high-performance implementation
Yan Liu, Vasiliki Stergiopoulou, Jonathan Chuah, Eric Bezzam, Gert-Jan Both, Michael Unser, Daniel Sage, Jonathan Dong
TL;DR
The paper addresses fragmented PSF models for high-NA microscopy by introducing a Richards-Wolf–based unifying framework that links Fourier (Cartesian) and Bessel (spherical) approaches via a shared propagation integral. It provides correction factors for Gibson-Lanni aberrations, arbitrary phase aberrations, apodization, and Gaussian envelopes, and implements these within a high-performance, differentiable PyTorch library (psf-generator) for CPU/GPU use. The authors demonstrate that the Bessel (spherical) approach is optimal for axisymmetric pupils, while the Fourier (Cartesian) approach is more versatile for non-axisymmetric configurations, enabling efficient integration into learning-based pipelines. Comprehensive benchmarks show the trade-offs in speed and accuracy across propagators and hardware, and the work includes open-source interoperability with napari and Chromatix, facilitating widespread adoption and integration into simulation and optimization workflows.
Abstract
Localization microscopy often relies on detailed models of point spread functions. For applications such as deconvolution or PSF engineering, accurate models for light propagation in imaging systems with high numerical aperture are required. Different models have been proposed based on 2D Fourier transforms or 1D Bessel integrals. The most precise ones combine a vectorial description of the electric field and precise aberration models. However, it may be unclear which model to choose, as there is no comprehensive comparison between the Fourier and Bessel approaches yet. Moreover, many existing libraries are written in Java (e.g. our previous PSF generator software) or MATLAB, which hinders the integration into deep learning algorithms. In this work, we start from the original Richards-Wolf integral and revisit both approaches in a systematic way. We present a unifying framework in which we prove the equivalence between the Fourier and Bessel strategies and detail a variety of correction factors applicable to both of them. Then, we provide a high-performance implementation of our theoretical framework in the form of an open-source library that is built on top of PyTorch, a popular library for deep learning. It enables us to benchmark the accuracy and computational speed of different models, thus allowing for an in-depth comparison of the existing models for the first time. We show that the Bessel strategy is optimal for axisymmetric beams while the Fourier approach can be applied to more general scenarios. Our work enables efficient PSF computation on CPU or GPU, which can then be included in simulation and optimization pipelines.
