Background¶
In the previous section, we have seen that the point spread function plays a key role in the localization precision of MINFLUX. In the broader context of localization microscopy, besides PSF engineering, the characterization of PSF is crucial for many applications such as image deconvolution. While it is possible to directly measure the PSF, this approach is time-consuming and specific to one particular microscope. In practice, a theoretical model to compute an approximate PSF given the specifications of a microscope is beneficial and necessary. In this part, we focus on the precise modeling and computation of PSFs.
Overview of PSF for Microscopy¶
Monitoring and assessment of point psread functions have been longstanding routines for microscopy, supported by the development of specific tools [206, 207, 208] and the creation of a consortium to standardize best practices [209]. A detailed characterization of the PSF is essential to the design of computational imaging processes such as single-molecule localization microscopy [210] and super-resolution microscopy, including 3D deconvolution microscopy [211, 212], structured illumination microscopy [213, 214], fluctuation microscopy [215, 216], STED [183], and MINFLUX [32] that we have shown in the previous part.
Computational PSF models have often been applied in fluorescence microscopy. For example, the fitting of a theoretical PSF to a measured one can improve accuracy [217, 218]. Detailed models enable the quantification of the 3D uncertainty [190], while the engineering of PSFs may take full advantage of parametric models [187, 219, 220]. They are a key component of high-quality single-molecule localization microscopy (SMLM) images [221, 222], including single-particle tracking [223, 224] and virtual SMLM microscopes [225].
The PSF can be measured experimentally from a z-stack of tiny fluorescent beads [211, 226]. However, a theoretical PSF is often required. Here, the challenge lies in the accurate model of light propagation for imaging systems with high numerical aperture (NA). Detailed models have been proposed [203, 227, 228, 229] to
go beyond simple paraxial approximations,
take into account the vectorial nature of the electric field, and
include various aberration factors such as the Gibson-Lanni aberrations due to refraction at planar interfaces [197].
Several software packages have been developed to generate precise theoretical 3D PSFs that include various features and aberrations. Among these, the Huygens PSF software [230] is well-known in the microscopic community, and the Java-based ImageJ/FIJI plugin, PSF Generator [217], has also been widely used. Other open-source alternatives include MATLAB-based solutions [208, 231, 232] as well as Python-based tools [233, 234].
State of the Art¶
Electromagnetic waves in optical systems are fundamentally described by the Helmholtz wave equations, yet solving these equations in full generality is computationally intractable. Various approximations and integral formulations have thus been developed. The cornerstone for precise PSF models in high-NA systems is the Richards-Wolf integral [227], which can be viewed as a vectorial extension of the Debye integral [235]. The conditions of validity for the Richards-Wolf integral have been thoroughly discussed in [236]. While alternative light propagation models exist, the Huygens-Fresnel approach has been shown to be equivalent, to some extent, for PSF calculations [237].
This has been the basis of a line of work for PSF models based on Bessel functions, which we will later refer to as the spherical parametrization of the Richards-Wolf integral. This approach includes simpler formulations such as the Kirchhoff model and more sophisticated vectorial representations [228, 229]. These models have progressively been refined by incorporating various correction factors to account for additional physical processes:
the Gibson-Lanni model for spherical aberrations due to refractive index mismatch [197] (later generalized in [238, 239]),
apodization factors for energy conservation [227], and
Fresnel transmission coefficients for accurate interface modeling [228].
Models using this spherical parametrization have been implemented in various software libraries in Java [217] and Python [233], which makes it widely accessible to researchers, albeit with some limitations in computational efficiency and integration with deep-learning frameworks.
Another line of work on PSF modeling is based on Fourier transforms, both in scalar [43] and vectorial [203] formulations. These models are based on a Cartesian parametrization of the underlying Richards-Wolf integral, and they represent a more general counterpart of the spherical parametrization. Recently, these high-NA Fourier models have been implemented in MATLAB [208] and Tensorflow as part of a PSF-fitting library [240]. Adequate sampling of the Fourier transform is crucial for obtaining high-resolution PSFs and avoiding aliasing. A common trick based on the chirp Z transform is usually implemented to achieve it [203, 208, 220], as we have seen in section Efficient Computation of the Generalized Inverse Fourier Transform of Optimal Excitation Patterns in MINFLUX via PSF Engineering.
Motivation and Contribution¶
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., the existing PSF generator) or MATLAB, which hinders their integration into deep-learning algorithms.
In this section, we start from the original Richards-Wolf integral and revisit both approaches systematically. 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 and allows for an in-depth comparison of 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 the efficient computation of a point spread function on CPU or GPU, which can then be included in simulation and optimization pipelines.