Revisiting PSF models: unifying framework and high-performance implementation
Liu, Stergiopoulou, Chuah et al.
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.
academic
Revisiting PSF models: unifying framework and high-performance implementation
Point spread function (PSF) models are core tools for localization microscopy. This paper proposes a unified theoretical framework for light propagation modeling in high numerical aperture (NA) imaging systems, proving the equivalence between methods based on 2D Fourier transforms and 1D Bessel integrals. The authors developed a high-performance open-source library based on PyTorch and conducted the first systematic benchmarking of different models. Experiments demonstrate that the Bessel strategy is optimal for axially symmetric beams, while Fourier methods are suitable for more general scenarios. The work supports efficient CPU/GPU computation and seamlessly integrates into deep learning and optimization pipelines.
The point spread function (PSF) is a fundamental concept in optical microscopy, describing the impulse response of an imaging system. In high numerical aperture (NA) imaging systems, accurate PSF models are critical for:
Single-molecule localization microscopy (SMLM): Requires precise PSF for molecular localization
Deconvolution microscopy: Requires accurate PSF models for image restoration
PSF engineering: Achieves super-resolution imaging through specially designed PSFs
PSF modeling is central to computational imaging, directly affecting the performance of super-resolution microscopy (e.g., STED, MINFLUX)
High-NA systems must account for complex physical effects including vectorial field characteristics, spherical aberration, and refractive index mismatch
Accurate PSF models can improve 3D localization accuracy and achieve spatial resolution beyond the optical diffraction limit
Theoretical level: Two mainstream methods exist (Fourier transform and Bessel function methods), but their relationship is unclear, lacking systematic comparison
Implementation level: Existing libraries are mostly written in Java or MATLAB (e.g., the authors' previous PSF Generator), making integration with modern deep learning frameworks difficult
Application level: Lack of systematic benchmarking of accuracy and computational speed, making it difficult for users to select appropriate models
Unified Theoretical Framework: Starting from the Richards-Wolf integral, proves that Fourier (Cartesian) and Bessel (Spherical) methods are essentially different parameterizations of the same propagation integral
Universal Correction Factors: Systematically derives multiple physical correction factors (Gibson-Lanni spherical aberration, apodization, Fresnel transmission coefficients, arbitrary phase distortions, etc.) and applies them uniformly to both methods
High-Performance PyTorch Implementation: Develops the open-source library psf-generator implementing four propagators (scalar/vectorial × Cartesian/spherical), supporting CPU/GPU computation and automatic differentiation
Systematic Benchmarking: First comprehensive comparison of different PSF models for accuracy and computational speed, providing guidance for practical applications
Ecosystem Integration: Provides napari graphical interface plugin and chromatix optical simulation framework integration, promoting adoption by the open-source community
Equivalence Proof: First rigorous proof that Cartesian and spherical parameterizations are different representations of the same integral, eliminating long-standing theoretical ambiguity in the field
Universal Correction Factors: Extends correction factors previously applied only to Bessel methods (e.g., Gibson-Lanni, apodization) to Fourier methods
Custom FFT Implementation: Implements 2D FFT for arbitrary pixel sizes using chirp Z transform, addressing sampling issues with extremely small pixel sizes in localization microscopy
Efficient Numerical Integration: Spherical method employs Simpson's rule for 4th-order accuracy, with batch processing vectorization via torch.vmap
Differentiable Bessel Functions: Extends automatic differentiation capabilities for Bessel functions not natively supported by PyTorch
Theoretical Unification: Starting from the Richards-Wolf integral, proves that Fourier (Cartesian) and Bessel (Spherical) methods are different parameterizations of the same propagation integral, eliminating long-standing theoretical ambiguity
Leutenegger et al. (2006): Fast focal field computation, modern Cartesian method implementation
Aguet (2009): Systematic vectorial PSF model paper (doctoral thesis)
Kirshner et al. (2013): Authors' previous PSF Generator Java version
Miora et al. (2024): Latest PSF computation method review and MATLAB implementation
Overall Assessment: This is an excellent paper combining theory and practice closely. Theoretically, it first proves the equivalence of two mainstream PSF modeling methods, establishing a unified framework; practically, it provides high-quality PyTorch implementation and systematic benchmarking. The paper's open-source spirit and ecosystem integration (napari, chromatix) reflect important contributions to the research community. Main limitations lie in lacking direct comparison with experimental data and existing software. This work will become an important tool in computational microscopy imaging, particularly with broad prospects in applications combining deep learning with physical models.