원시데이터 수집 시스템
선정목록으로

FASER: a tool for vectorial point spread function simulation with applications in stimulated emission depletion microscopy

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. Johannes L. Roos — Johannes Kepler University, Institute of Anatomy and Cell Biology, Linz, Austria|||Johannes Kepler University, Institute of Anatomy and Cell Biology, Linz, Austria (Austria)|||University of Bordeaux, Interdisciplinary Institute for Neurosciences, CNRS, UMR 5297, Bordeaux, France (France)
  2. Stéphane Bancelin — University of Bordeaux, Interdisciplinary Institute for Neurosciences, CNRS, UMR 5297, Bordeaux, France|||University of Bordeaux, Interdisciplinary Institute for Neurosciences, CNRS, UMR 5297, Bordeaux, France (France)|||IOGS - CNRS - University of Bordeaux, Numerical and Nanosciences Photonics Laboratory (LP2N), UMR 5298, Talence, France (France)
  3. U. Valentin Nägerl — University of Bordeaux, Interdisciplinary Institute for Neurosciences, CNRS, UMR 5297, Bordeaux, France|||University of Bordeaux, Interdisciplinary Institute for Neurosciences, CNRS, UMR 5297, Bordeaux, France (France)
DOI
10.1117/1.nph.12.1.017801
저널
Neurophotonics
발행년도
2025
발행기관
SPIE
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1117/1.nph.12.1.017801
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4407391658

평가 내용

관련도
관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

We introduce FASER, a software package designed to simulate the excitation point spread functions (PSFs) of microscopes. It is written in Python as a plugin for the open-source platform Napari. Using a full-vectorial computational approach to simulate the electromagnetic fields within the focal region makes precise predictions and allows detailed analyses of excitation PSFs. FASER is intended as a pedagogical tool enabling users to explore the impacts of various geometrical and optical parameters of practical importance on the performance of the microscope. It supports the modeling of complex beam profiles, including donut and bottle-shaped beams, which are commonly used in advanced microscopy techniques such as stimulated emission depletion (STED) microscopy. Through specific simulations and accessible illustrations, we showcase FASER's capabilities in capturing characteristic features of STED microscopy, making it a practical resource for researchers and students in optical microscopy to explore and optimize high-resolution imaging techniques.

본문 33,609자

본문 펼치기
We introduce FASER, a software package designed to simulate the excitation point spread functions (PSFs) of microscopes.It is written in Python as a plugin for the open-source platform Napari.Using a full-vectorial computational approach to simulate the electromagnetic fields within the focal region makes precise predictions and allows detailed analyses of excitation PSFs.FASER is intended as a pedagogical tool enabling users to explore the impacts of various geometrical and optical parameters of practical importance on the performance of the microscope.It supports the modeling of complex beam profiles, including donut and bottle-shaped beams, which are commonly used in advanced microscopy techniques such as stimulated emission depletion (STED) microscopy.Through specific simulations and accessible illustrations, we showcase FASER's capabilities in capturing characteristic features of STED microscopy, making it a practical resource for researchers and students in optical microscopy to explore and optimize high-resolution imaging techniques. Introduction Optical microscopy occupies a central place in the field of biophotonics, with new imaging technologies enabling significant biological breakthroughs.As technology keeps progressing, conceptual and technical improvements push the limits of optical microscopy in terms of spatial and temporal resolution, 1 sensitivity, specificity, minimal invasiveness, and depth penetration, 2 heralding the era of quantitative multiscale optical biology. 3,4ptical microscopy typically relies on the use of tightly focused light fields.In most cases, image quality (e.g., SNR, spatial resolution, sensitivity) depends strongly on the size and shape of the point spread function (PSF) of the microscope.Hence, precise control of the optical properties of focused beams (intensity, polarization, and phase) is critical for designing optical microscopes with high imaging performance.][7] How to focus light in the best way has drawn considerable interest for many decades.Over the years, extensive literature on analytical and numerical models to compute the diffracted light distribution has emerged.Because high-resolution optical microscopy commonly employs high numerical aperture (NA) objectives, a fully vectorial model is required to describe the focused light field.][14] However, a general analytical solution has not yet been derived.Due to the complexity of numerical calculations, various approximations are often used, limiting the simulation of the PSF to specific cases.In particular, paraxial approximation (small angles with respect to the optical axis), scalar approximation (neglected polarization of light), and aberration-free conditions are commonly assumed. Introduction Here, we introduce FASER, an open-source Python software package designed to simulate the PSF of an optical microscope using fully vectorial calculations.It allows users to set the intensity profile, polarization, and phase mask of the incident laser beam, as well as to modify the geometry of the focusing medium.This tool was designed for pedagogical purposes, letting users simulate the effect of key optical and geometrical parameters on the PSF of the microscope.Specifically, FASER was expressly designed with in vivo experiments in mind, to make it possible to simulate the impact of a cranial window (e.g., refractive index, thickness, size, and tilt) and thus to help optimize the key parameters for an optical imaging protocol. Introduction Developed as a plugin for Napari, 15 FASER provides a graphical user interface (GUI) that allows running simulations directly without any coding skills.In addition, a batch mode functionality exists for most parameters, letting users vary parameters systematically to determine their impact and tolerance range. Introduction In this work, we illustrate the potential of FASER to simulate shaped PSFs, such as those used in STED and reversible saturable optical fluorescence transition (RESOLFT) microscopy, in the context of in vivo microscopy, including a cranial window and a coverslip.We investigate the effects of common cases of misalignments and optical aberrations on the STED PSF and the resulting effective fluorescence PSF. Light Distribution in the Focal Region In an optical imaging system, if the NA of the focusing lens is relatively high (NA ≥0.7), the approximations used in scalar diffraction theory, such as the paraxial approximation, Kirchhoff boundary condition, and Fresnel or Fraunhofer approximation are no longer valid. 8In the 1950s, Richard and Wolf proposed a comprehensive mathematical representation of the electromagnetic field (EM) distribution in the focal region of a high NA objective lens. 16,17A precise investigation of the validity range of this integral representation has been proposed in the literature. 13,18The main assumptions of this theory can be summarized as follows: Light Distribution in the Focal Region • The beam at the exit pupil has a spherical wavefront with a radius f, the focal length of the objective. Light Distribution in the Focal Region • Each diffracted light ray is considered as a plane wave propagating toward the geometrical focal point of the lens, indicated by the wave vector k.• The observation point is far from the exit pupil plane [SP ≫ λ, see Fig. 1(a)], and the pupil size is large compared with the wavelength (f sin α ≫ λ). Light Distribution in the Focal Region Following this formalism, known as vectorial diffraction theory, the electric field (E) in an arbitrary point Pðx; y; zÞ in the focal region of a high NA objective lens results from the superposition of all diffracted plane waves emerging from the exit pupil of the lens within the solid angle Ω 8,10,17 E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 1 ; 1 Light Distribution in the Focal Region where k is the wavenumber, s ¼ ðs x ; s y ; s z Þ is a dimensionless unit vector along each ray from the objective pupil toward the geometrical focal point O, a the complex amplitude of the incident laser beam after the objective, and r is the position vector of point Pðx; y; zÞ.For the sake of clarity, it is more convenient to express the wave vector s and pupil function in spherical coordinates.In this case, E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 2 ; 1 Light Distribution in the Focal Region Considering the geometry depicted in Fig. 1, the diffraction integral can be expressed as Light Distribution in the Focal Region ; t e m p : i n t r a l i n k -; e 0 0 3 ; 1 1 7 ; 2 4 1 Light Distribution in the Focal Region ðθ; φÞA ð0Þ ðθ; φÞe ik 0 nðx sin θ cos φ þ y sin θ sin φ þ z cos θÞ sin θdθ dφ; Light Distribution in the Focal Region (3) with k 0 as the wavenumber in the vacuum, n as the refractive index in the medium, α ¼ arcsinðNA∕nÞ as the marginal ray angle of the objective (semi-aperture angle), and Λ ð1Þ ðθ; φÞ as an operator describing the transformation of the complex vector field A ð0Þ ðθ; φÞ incident at the back aperture of the objective lens into the field A ð1Þ ðθ; φÞ on Ω after refraction by the objective lens.The action of this operator is explained in detail in Secs.3.2.1 and 3.2.2. Focusing Through a Glass Coverslip In optical microscopy, light is typically focused on the sample through a layer of water or oil as an immersion medium and a thin coverslip for protection of the sample.To investigate this configuration, Richard and Wolf's solution was extended by Törok et al. 10 to account for a planar dielectric interface and further generalized to stratified media. 11Although this framework can describe an arbitrary number of layers with different refractive indices, only two interfaces are necessary to describe a glass coverslip placed between the sample and immersion media (Fig. 1).In this case, the focal field in the sample, after the coverslip can be written E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 4 ; 1 1 4 ; 6 8 8 Focusing Through a Glass Coverslip ðθ; φÞA ð0Þ ðθ; φÞe ik 0 n 1 ðx sin θ 1 cos φ þ y sin θ 1 sin φÞ e ik 0 n 3 z cos θ 3 e ik 0 ðn 3 d cos θ 3 −n 1 ðt þ dÞ cos θ 1 Þ sin θdθ dφ; (4) with d as the depth in the sample, t as the thickness of the coverslip, and n l and θ l as the refractive indices and incident angles in the immersion medium (1), coverslip (2), and sample (3), respectively.These parameters are determined according to Snell's law.Note that Λ ð3Þ ðθ; φÞ describes the polarization conversion in a heterogeneous medium after the objective aperture, including Fresnel coefficients of reflection and transmission through the coverslip.Notably, it includes the different apodization for s and p polarization. Focusing Through a Glass Coverslip The third exponential term corresponds to aberrations induced along the optical path by the coverslip and the biological sample.Notably, it is independent of the polar angle θ 1 and thus describes spherical aberrations.The effect of a correction collar can hence be simulated, assuming perfect correction mechanisms, by applying the inverted aberration terms E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 5 ; 1 1 4 ; 5 1 4 Focusing Through a Glass Coverslip Notably, the case of a coverslip-corrected microscope objective can be computed by simply setting the correction collar to a defined value. FASER: Vectorial PSF Simulations As highlighted in Eq. ( 4), the PSF in the focal region of a high NA objective lens depends on several parameters.Although these equations are well-known, performing full-vectorial simulations of the PSF in the focus of a high NA objective lens remains a complex task, and up to now, most freely available simulation tools only allow calculations for specific sets of configurations. FASER: Vectorial PSF Simulations FASER is intended as a pedagogical tool for microscope developers and users, as well as optical aficionados, making it possible to explore the impact of numerous parameters related to the excitation beam and focusing geometry.This flexibility facilitates simulating PSFs that one encounters under real-world experimental conditions.The following subsections outline these parameters and how they are implemented in FASER. Numerical Calculation In principle, there is an infinite number of diffracted rays within the solid angle Ω that emerge from the lens aperture and propagate toward the focal region.Yet, for numerical computations, the polar θ and azimuthal angles φ are discretized into N θ and N φ steps, equally spaced by Δθ and Δφ, respectively E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 6 ; 1 1 4 ; 2 4 9 < : < Consequently, the diffraction integral may be discretized by summing up a finite number of plane waves.This discretized form is more convenient for numerical computation and can be written as E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 7 ; 1 1 4 ; 1 6 3 < ðθ; φÞA ð0Þ ðθ; φÞe ik 0 n 1 ðx sin θ 1 cos φ þ y sin θ 1 sin φÞ e ik 0 n 3 z cos θ 3 e ik 0 Φ ð3Þ sin θΔθΔφ: < The focal intensity is then calculated as the squared modulus of the electric field Incident Beam The incident beam on the input pupil of the objective lens can be written E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 9 ; 1 1 7 ; 7 1 2 A ð0Þ ¼ A ð0Þ ðθ; φÞP ð0Þ e iΦðθ;φÞ e iMðθ;φÞ ; Incident Beam where A ð0Þ ðθ; φÞ is the complex amplitude, P 0 is the polarization of the incident beam, Φðθ; φÞ is the aberration function, and Mðθ; φÞ is the phase profile of the input beam, corresponding to the phase mask used to shape the beam. Amplitude The amplitude of a Gaussian beam incident on the input plane of the objective lens can be written in cylindrical coordinates as Amplitude ; t e m p : i n t r a l i n k -; e 0 1 0 ; 1 1 7 ; 5 9 0 Amplitude where A 0 is a constant and w is the beam waist.Although passing through an aplanatic objective, the incident plane wave transforms into a spherical wave converging to the focal point.Therefore, the amplitude distribution after the objective can be expressed as Amplitude ; t e m p : i n t r a l i n k -; e 0 1 1 ; 1 1 7 ; 5 2 4 Amplitude where the cylindrical coordinate on the exit pupil of the objective lens is given by the sine condition 9 ρ ¼ f sin θ and ffiffiffiffiffiffiffiffiffiffi ffi cos θ p the apodization term ensuring energy conservation, whereas the beam passes through the objective. Polarization Assuming a transverse polarization state of the input field, the incident field can be written E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 2 ; 1 1 7 ; 4 0 9 Polarization x ðθ; φÞ P ð0Þ y ðθ; φÞ 0 Polarization Because of the tight focusing, the objective transforms this input transverse polarization into a partially axial polarization in the focal region polarization, which can be described by the 3 × 3 lens operator matrix L θ . Polarization E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 3 ; 1 1 7 ; 3 1 9 Polarization Accounting for the interface of the coverslip, the electric field polarization in the sample (3rd medium) can be written as 11 E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 4 ; 1 1 7 ; 2 4 6 P ð3Þ ðθ; φÞ ¼ Λ ð3Þ ðθ; Polarization where R φ represents the coordinate transformation resulting from a rotation around the z-axis, P ðlÞ corresponds to the coordinate system rotation in medium l, and I ð2Þ is the matrix that describes the effect of the coverslip, considered a stratified medium of two interfaces. Polarization E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 5 ; 1 1 7 ; 1 8 2 Polarization where θ l is the focusing angle in the l'th medium and T ð2Þ s;p are the transmission coefficients in the coverslip. Polarization In the general case, determining the reflection and transmission coefficients through a stratified medium involves solving Maxwell's equations.However, in the case of a coverslip with only two interfaces, this simplifies the well-determined Fresnel coefficients for s-and p-polarization Polarization with n j and θ j as the refractive index and the incident angle in the j'th medium, respectively.For example, in the case of left-handed circular polarization E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 8 ; 1 1 4 ; 5 7 5 Optical aberrations In Eq. ( 9), Φðθ; φÞ represents the wavefront distortion relative to the reference sphere, an effect commonly called optical aberration.A convenient approach is to express these distortions in cylindrical coordinates on the objective pupil and to decompose them using Zernike polynomials: Optical aberrations where n ∈ N is the radial degree, m ∈ Z is the azimuthal degree, and C m n and Z m n are the Zernike coefficients and polynomials, respectively. 19,20Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 0 ; 1 1 4 ; 3 1 1 Optical aberrations with Optical aberrations These modes are normalized to R m n ð1Þ ¼ 1 which was introduced by Noll in 1975. 21ernike polynomials are widely employed to model optical aberrations due to their orthogonality (on the unit sphere).In the paraxial approximation, each polynomial function corresponds to a distinct type of optical aberration, such as astigmatism, coma, or spherical. 19,20 Phase mask Spatial shaping of the focal field distribution is often achieved using a phase mask Mðθ; φÞ, imprinted on the incident laser beam prior to reaching the objective lens. Phase mask Various phase masks are available to achieve different spatial shapes.For convenience, the phase mask is expressed in spherical coordinates. Phase mask where q ∈ R is an integer representing the topological charge of the vortex or ring, respectively.To produce a bottle beam, q has to be an odd number.θ R is the angle between the optical axis and the edge marginal ray of the π-phase ring of the phase mask. Phase mask E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 2 ; 1 1 7 ; 6 1 9 Phase mask with r R the radius of the π-phase ring and r pup the radius of the front pupil of the objective.Finally, in the case of donut and bottle beam shaping, which are used in 3D-STED microscopy, the two PSFs are treated separately and added in the far field, assuming orthogonal polarization using a weighted sum E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 3 ; 1 1 7 ; 5 3 2 Phase mask with p ∈ ½0;1 so that p ¼ 0 and p ¼ 1 correspond to a donut-and bottle-shaped beam, respectively. Effective Fluorescence PSF In the case of STED microscopy, the effective fluorescent spot results from the combined action of the excitation PSF I e (e.g., confocal, two-photon) and the de-excitation PSF I d (e.g., donut, bottle).In FASER, both are computed independently and the effective fluorescent PSF I eff is determined in every pixel as 22 E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 4 ; 1 1 7 ; 4 1 3 Effective Fluorescence PSF where I sat represents the saturation factor accounting for the interaction between the STED laser (de-excitation) and the fluorophore. Impact of the cranial window In many cases, optical access to the sample occurs via a coverslip, which serves as a layer of mutual protection for the microscope and the sample.This is a common methodology in neuroimaging, where a "cranial window" literally means a miniature fenestration in the skull of the animal that is sealed by a thin glass to avoid physical leakage in and out of the interior. 23It makes it possible to maintain the brain in physiological conditions while providing high-quality optical access for extended periods over the lifetime of the animal.To simulate this experimental configuration, we introduced an additional amplitude mask E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 5 ; 1 1 7 ; 2 2 9 Impact of the cranial window CWðθ; φÞ ¼ 1 for θ ≤ θ c transmitted rays 0 for θ c ≤ θ ≤ α blocked region : Impact of the cranial window where θ c is the angle between the optical axis and the marginal ray of the cranial window on the output pupil of the objective.For further details, refer to Ref. 7. Impact of the cranial window In the diffraction integral, this simply leads to a change of the integration limit to account for the reduced effective pupil size. Case of a tilted coverslip In real-world conditions, orthogonality of the coverslip with respect to the optical axis can be challenging to achieve and a few degrees of deviation can easily occur, particularly in the case of in vivo imaging.A tilted interface breaks the rotational symmetry of the previous configuration and is therefore expected to affect the phase of the laser beam.Apart from spherical aberrations induced by the stratified medium from the objective to the sample, a tilted coverslip introduces significant aberrations, especially coma.However, only a few studies deal with this case, most of them using undisclosed algorithms.In FASER, we implemented an approach proposed by Berning 24 and further detailed in Ref. 25 to extend the theoretical framework presented in Sec.2.2 to this new geometry.Schematically, tilting the coverslip by an angle γ is equivalent to rotating the objective lens, and the incident beam, by an angle −γ.However, analytically, it is simpler to derive the focal field using the rotated objective lens method.Indeed, tilting the coverslip requires modifying Eq. ( 4), and notably, the integration range and the boundary conditions.By contrast, the second method can simply be realized through a transformation of the pupil function to rotate the spherical wavefront A ð1Þ around the origin 0. The integration limit on θ is expanded to α þ jγj, to ensure the entire wavefront is accounted for without clipping, while the amplitude of the beam falling out of the pupil is set to 0. The new pupil function A ð0Þ γ ðθ; φÞ is essentially the pupil function of the untitled case but evaluated at the transformed position A ð0Þ ðθ 0 ; φ 0 Þ.The rotated coordinate can be expressed as follows: Case of a tilted coverslip E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 6 ; 1 1 4 ; 5 5 1 Case of a tilted coverslip with E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 7 ; 1 1 4 ; 5 0 2 x 0 y 0 ¼ f cos γ cos φ sin φ − sin γ cos θ sin φ sin θ Case of a tilted coverslip All parameters related to the objective lens, and hence to its coordinate system, have to be transformed in this way, notably the apodization factor and the phase correction term [Eq.( 5)]. Case of a tilted coverslip E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 8 ; 1 1 4 ; 4 4 1 Case of a tilted coverslip ðθ; φÞA ð0Þ ðθ 0 ; φ 0 ÞCWðθ; φÞe iΦðθ 0 ;φ 0 Þ e iMðθ 0 ;φ 0 Þ e ik 0 n 1 ðx sin θ 1 cos φ þ y sin θ 1 sin φÞ e ik 0 n 3 z cos θ 3 e ik 0 ðn 3 d cos θ 3 0 −n 1 ðt þ dÞ cos θ 1 0 Þ sin θdθ dφ: Case of a tilted coverslip 4 Installation Case of a tilted coverslip FASER provides high-level functions for configuring and running simulations of focused light fields and was written as a Napari plugin.Its graphical user interface (GUI) is depicted in Fig. 2. We offer three primary ways to use FASER, each intended to support different use cases. Case of a tilted coverslip • First, FASER is available as a plugin directly through the Napari Plugin Hub.This makes it straightforward to install into an existing Napari environment without requiring programming knowledge.The plugin can be found in Ref. 26. • Second, FASER can be installed as a standalone tool in any Python 3.10 environment by running pip install faser napari[pyqt5].It can be launched using qtfaser.This approach includes a command-line interface, enabling its integration into automated computational workflows-for instance, to run multiple simulations while exploring a larger parameter space.• Third, FASER can be installed directly from its source code hosted at https://github.com/jhnnsrs/faser.To do so, first, create a new environment with Python 3.10.11and install Napari pip install napari.Then, clone the FASER repository using git clone https:// github.com/jhnnsrs/faser.git,navigate to the cloned directory with cd faser, and install FASER using pip install to ensure all dependencies are installed.Finally, start Napari by running python nap.py. FASER Design and Implementation-Example Case of STED Microscopy The objective of FASER is to provide an open-access, educational tool for simulating the excitation PSF of a microscope.The GUI simplifies setting calculation parameters that define the simulation, and key parameters including the input beam, the geometry of focalization, and the numerical computation parameters. FASER Design and Implementation-Example Case of STED Microscopy As an example, in the following sections, we focus on FASER's capability to simulate toroidal PSFs used in STED microscopy.However, as detailed in Secs. 2 and 3, FASER is based on vectorial diffraction theory, which offers a general framework for computing the PSF of any optical system.Therefore, the examples presented here can be extended to other microscopy techniques.It is important to note that currently, FASER only considers excitation PSFs.Other parameters, such as pinhole sizes that come into play in confocal microscopy, would need to be included to compute the emission PSF. Main Widgets The main widget contains four tabs designed for configuring simulated parameters, input beam properties-including potential aberrations stemming from flawed optics and setup alignment before the objective lens-and setting the focalization geometry under consideration.Unless otherwise specified, default values set in FASER were applied for the calculation. Simulation parameters The first tab is used to set simulation parameters such as the number of pixels in X, Y, and Z directions, along with the observation scale.In addition, the number of integration steps in φ and θ angles are defined here.A check box allows normalization of the maximum pixel value of the PSF intensity to 1. Beyond default values, all these parameters can be independently set prior to launching the simulations. Simulation parameters Figure 3 illustrates the effects of these parameters on computation time and PSF accuracy.As expected, computation time increases quadratically with the number of pixels in the X and Y directions (defined as a common parameter: N XY ).Conversely, changing the number of integration steps N θ from 5 to 15 strongly impacts the simulated PSF, particularly the quality of the zero in the center.Increasing the number of steps has a more limited impact on the results.As a compromise between speed and accuracy, the default values of pixel number and integration steps are set to 31.However, it is worth noting that the optimal number of integration steps depends on the complexity of the phase mask and the aberration profile of the incident beam.Through various configurations, we found a good compromise between computation time and number of pixels and steps.Yet, simpler PSFs (such as a Gaussian beam) can be appropriately computed with fewer steps, whereas highly structured PSFs might fare better with a higher number of pixels and steps. Simulation parameters To facilitate efficient computation in the Python environment, FASER employs strategies of Just-In-Time Compilation (utilizing Numba) and employs lazy compute patterns through Dask.The computing times provided in the next section have been obtained on a standard desktop running on Windows 11 Pro 64 bits, equipped with an Intel core i5-1335U processor (1.30GHz) and 16 GB of RAM. Focusing geometry The second tab serves to define the focalization geometry under consideration, as depicted in Fig. 4.This includes specifying the objective parameters (NA, working distance, refractive index of the immersion media and correction collar), details about the coverslip (refractive index, thickness, tilt), and the characteristics of the sample (refractive index, depth).In addition, to account for a potential cranial window used for in vivo imaging, an aperture is added right after the objective lens. Focusing geometry Figure 4(b) illustrates the impact of a cylindrical cranial window.As expected, the window reduces the effective numerical aperture, leading to an extended focus.The impact of the cranial window geometry in STED microscopy has been previously described. 27In addition, a tilt angle of the coverslip introduces severe distortions of the PSF as reported. 25This parameter is particularly critical in vivo, where tilt angles ∼1 deg can inadvertently be introduced. Input beam parameters Intensity distribution, polarization, and phase mask.The third tab in the main widget is used to define the properties of the input beam.The intensity profile incident on the input pupil of the objective is defined as a Gaussian profile with a specified wavelength and waist.In addition, a misalignment of the input beam can be modeled through an offset of the intensity profile.A "show intensity" push-button allows visualization of the input profile on the back pupil of the objective lens [see Fig. 5(a)].Furthermore, a phase mask can be applied to the input beam.A toggle box allows the selection of desired profiles (Gaussian, donut, bottle, or donut and bottle).Alternatively, a customdefined phase mask can be loaded.Donut beams are formed using a vortex phase mask defined by an integer vortex charge.Bottle beams are generated with a ring phase mask defined by the ring radius and charge.In both cases, an offset can be introduced to model a misalignment of the phase mask with respect to the optical axis of the objective.Last, a combination of donut and bottle beams, commonly used in 3D-STED microscopy, can be modeled with a parameter p indicating the intensity split between the two-phase modulations.Once again, a "show phase mask" push-button enables to visualize the imprinted mask on the back pupil of the objective lens [see Fig. 5(b)]. Input beam parameters Figure 5 illustrates the impact of different parameters (polarization, phase mask offset) on the donut beam PSF.It illustrates that mask misalignment can easily be mistaken for optical aberrations, as previously investigated and quantified. 28,29In addition, a detailed study of the effect of STED beam polarization can be found in Hao et al. 30 Optical aberrations.Beyond the phase mask, to model a realistic optical system, optical aberrations can be added to the incident beam.We focused on the first-order aberrations (tip, tilt, astigmatism, Coma, trefoil, and spherical) as well as second-order spherical aberration, as they represent the dominant aberrations in optical microscopy.The fourth and final tab of the main widget allows independent setting of the coefficients for these 11 modes, as well as an offset of the aberrated wavefront.A push-button "show aberrations" enables visualization of the input profile on the back pupil of the objective lens [see Fig. 6(a) for an example]. Input beam parameters Figure 6 illustrates the effect of the most classical aberrations on the mixture of donut and bottle beam profiles. Helper Widgets As explained above, the main widget serves to define the simulation parameters for the PSFs.FASER also incorporates several helper widgets, providing additional functionality (Fig. 7). Helper Widgets The first tab enables the computation of the effective PSF for the case of STED microscopy.The user has to select two previously simulated PSFs: one for excitation and one for depletion.The effective PSF is computed using the defined saturation factor according to Eq. (24). Helper Widgets A sample tab enables the simulation of an artificial sample of defined size in all three dimensions, with a specified number of points randomly distributed.The next tab serves to convolve images.It is originally intended to convolve a simulated PSF with a sample space, illustrating how a modified PSF impacts the image.Additional structures (line grid and concentric circles) were added to illustrate the impact of PSF distortion on the particular features in the images. Helper Widgets An export tab makes it possible to save a z-stack of the simulated PSF as a.tiff file.This includes saving the simulation parameters as metadata accompanying the data. Fig. 1 Fig. 1 Schematic of the geometry used for the simulations.(a) Using vectorial diffraction theory, the incident pupil field Aðr ; φÞ is transformed into a spherical wavefront through the objective lens and then propagated to the focal spot.The focal intensity is calculated at any point P in the vicinity of the focus O.The focalization process is computed through the stratified media consisting of immersion liquid, coverslip, and sample.(b) The ellipticity, intensity profile, and potential aberrations in the input beams are determined before the objective.A phase mask can also be added in the context of beam shaping, as in the case of STED microscopy. ik 2 t cos θ 2 ; ( 16 ) Roos, Bancelin, and Nägerl: FASER: a tool for vectorial point spread function. . .with t as the thickness of the coverslip and t ðjÞ s;p and r ðjÞ s;p as the amplitude transmission and reflection coefficient at the j'th interface, respectively E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 7 ; 1 1 4 ; 6 7 1 ik 2 t cos θ 2 ; ( 16 ) G E T ; t e m p : i n t r a l i n k -; e 0 ik 2 t cos θ 2 ; ( 16 ) ¼ 0 Mðθ; φÞ ¼ qφ Mðθ; φÞ ¼ qπ for θ ≤ θ M 0 for θ M ≤ θ ≤ α Fig. 2 Fig.2FASER GUI.Based on the Napari viewer, FASER features a main widget window with multiple tabs to set the simulation parameters and the property of the input beam and define the focusing geometry.A helper widget window provides additional tabs to compute the effective PSF in STED microscopy, simulate an artificial object, convolve it with the PSF, and export the simulated stacks of images. Fig. 3 Fig. 3 Simulation parameters.(a) Schematic of the simulation configuration.(b) Computation time as a function of the number of XY pixels in the computed volume.(c) Lateral (2 × 2 μm 2 ) and axial (2 × 4 μm 2 ) views of a bottle-shaped PSF for different θ integration steps. Fig. 4 Fig. 4 Focusing geometry.(a) Schematic of the optical geometry after the microscope objective.(b) PSF simulation with and without a cylindrical cranial window. 27(c) Impact of a tilted coverslip on the donut-beam profile.Image size 2 × 2 μm 2 for XY views and 2 × 4 μm 2 for XZ views. Fig. 5 Fig. 5 Input beam.(a) Pop-up window displaying the intensity profile on the back pupil of the objective.(b) Pop-up window showing the phase mask imprinted on the input beam.(c) Effect of the polarization on donut beam PSF (in-plane views -2 × 2 μm 2 ).(d) Donut and bottle profiles at different p ratios (axial views -2 × 4 μm 2 .(e) Impact of misaligned vortex mask on the donutshaped PSF. FASER also allows the user to set the polarization of the beam.A toggle box allows selection between elliptical (default), radial, or azimuthal polarization.For elliptical polarization, ϵ control the ellipticity (−45 deg right-handed circular, 0 deg linear, and 45 deg left-handed circular) and Ψ the polarization direction. Fig. 6 Fig. 6 Optical aberrations.(a) Pop-up window showing an example of an aberrated wavefront (a mixture of aberrations) on the back pupil of the objective.(b) Impact of the main aberrations on donut and bottle PSFs (with p ¼ 0.5).Lateral views 2 × 2 μm 2 and axial views 2 × 4 μm 2 . Fig. 7 Fig. 7 Helper widget.(a) Example of an effective PSF calculated from the excitation and depletion PSFs (left panels) for various saturation factors.(b) Example of a generated space (100 × 100 × 10 μm 3 ) with 1000 spots.(c) Convolution with the donut and bottle PSF. Fig. 7 Roos, Bancelin, and Nägerl: FASER: a tool for vectorial point spread function. . .Neurophotonics 017801-13 Jan-Mar 2025 • Vol.12(1)

섹션 본문 94문단 · 31,606자

(제목 없음)

1We introduce FASER, a software package designed to simulate the excitation point spread functions (PSFs) of microscopes.It is written in Python as a plugin for the open-source platform Napari.Using a full-vectorial computational approach to simulate the electromagnetic fields within the focal region makes precise predictions and allows detailed analyses of excitation PSFs.FASER is intended as a pedagogical tool enabling users to explore the impacts of various geometrical and optical parameters of practical importance on the performance of the microscope.It supports the modeling of complex beam profiles, including donut and bottle-shaped beams, which are commonly used in advanced microscopy techniques such as stimulated emission depletion (STED) microscopy.Through specific simulations and accessible illustrations, we showcase FASER's capabilities in capturing characteristic features of STED microscopy, making it a practical resource for researchers and students in optical microscopy to explore and optimize high-resolution imaging techniques.

Introduction

2Optical microscopy occupies a central place in the field of biophotonics, with new imaging technologies enabling significant biological breakthroughs.As technology keeps progressing, conceptual and technical improvements push the limits of optical microscopy in terms of spatial and temporal resolution, 1 sensitivity, specificity, minimal invasiveness, and depth penetration, 2 heralding the era of quantitative multiscale optical biology. 3,4ptical microscopy typically relies on the use of tightly focused light fields.In most cases, image quality (e.g., SNR, spatial resolution, sensitivity) depends strongly on the size and shape of the point spread function (PSF) of the microscope.Hence, precise control of the optical properties of focused beams (intensity, polarization, and phase) is critical for designing optical microscopes with high imaging performance.][7] How to focus light in the best way has drawn considerable interest for many decades.Over the years, extensive literature on analytical and numerical models to compute the diffracted light distribution has emerged.Because high-resolution optical microscopy commonly employs high numerical aperture (NA) objectives, a fully vectorial model is required to describe the focused light field.][14] However, a general analytical solution has not yet been derived.Due to the complexity of numerical calculations, various approximations are often used, limiting the simulation of the PSF to specific cases.In particular, paraxial approximation (small angles with respect to the optical axis), scalar approximation (neglected polarization of light), and aberration-free conditions are commonly assumed.

3Here, we introduce FASER, an open-source Python software package designed to simulate the PSF of an optical microscope using fully vectorial calculations.It allows users to set the intensity profile, polarization, and phase mask of the incident laser beam, as well as to modify the geometry of the focusing medium.This tool was designed for pedagogical purposes, letting users simulate the effect of key optical and geometrical parameters on the PSF of the microscope.Specifically, FASER was expressly designed with in vivo experiments in mind, to make it possible to simulate the impact of a cranial window (e.g., refractive index, thickness, size, and tilt) and thus to help optimize the key parameters for an optical imaging protocol.

4Developed as a plugin for Napari, 15 FASER provides a graphical user interface (GUI) that allows running simulations directly without any coding skills.In addition, a batch mode functionality exists for most parameters, letting users vary parameters systematically to determine their impact and tolerance range.

5In this work, we illustrate the potential of FASER to simulate shaped PSFs, such as those used in STED and reversible saturable optical fluorescence transition (RESOLFT) microscopy, in the context of in vivo microscopy, including a cranial window and a coverslip.We investigate the effects of common cases of misalignments and optical aberrations on the STED PSF and the resulting effective fluorescence PSF.

Light Distribution in the Focal Region

6In an optical imaging system, if the NA of the focusing lens is relatively high (NA ≥0.7), the approximations used in scalar diffraction theory, such as the paraxial approximation, Kirchhoff boundary condition, and Fresnel or Fraunhofer approximation are no longer valid. 8In the 1950s, Richard and Wolf proposed a comprehensive mathematical representation of the electromagnetic field (EM) distribution in the focal region of a high NA objective lens. 16,17A precise investigation of the validity range of this integral representation has been proposed in the literature. 13,18The main assumptions of this theory can be summarized as follows:

7• The beam at the exit pupil has a spherical wavefront with a radius f, the focal length of the objective.

8• Each diffracted light ray is considered as a plane wave propagating toward the geometrical focal point of the lens, indicated by the wave vector k.• The observation point is far from the exit pupil plane [SP ≫ λ, see Fig. 1(a)], and the pupil size is large compared with the wavelength (f sin α ≫ λ).

9Following this formalism, known as vectorial diffraction theory, the electric field (E) in an arbitrary point Pðx; y; zÞ in the focal region of a high NA objective lens results from the superposition of all diffracted plane waves emerging from the exit pupil of the lens within the solid angle Ω 8,10,17 E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 1 ; 1

10where k is the wavenumber, s ¼ ðs x ; s y ; s z Þ is a dimensionless unit vector along each ray from the objective pupil toward the geometrical focal point O, a the complex amplitude of the incident laser beam after the objective, and r is the position vector of point Pðx; y; zÞ.For the sake of clarity, it is more convenient to express the wave vector s and pupil function in spherical coordinates.In this case, E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 2 ; 1

11Considering the geometry depicted in Fig. 1, the diffraction integral can be expressed as

12; t e m p : i n t r a l i n k -; e 0 0 3 ; 1 1 7 ; 2 4 1

13ðθ; φÞA ð0Þ ðθ; φÞe ik 0 nðx sin θ cos φ þ y sin θ sin φ þ z cos θÞ sin θdθ dφ;

14(3) with k 0 as the wavenumber in the vacuum, n as the refractive index in the medium, α ¼ arcsinðNA∕nÞ as the marginal ray angle of the objective (semi-aperture angle), and Λ ð1Þ ðθ; φÞ as an operator describing the transformation of the complex vector field A ð0Þ ðθ; φÞ incident at the back aperture of the objective lens into the field A ð1Þ ðθ; φÞ on Ω after refraction by the objective lens.The action of this operator is explained in detail in Secs.3.2.1 and 3.2.2.

Focusing Through a Glass Coverslip

15In optical microscopy, light is typically focused on the sample through a layer of water or oil as an immersion medium and a thin coverslip for protection of the sample.To investigate this configuration, Richard and Wolf's solution was extended by Törok et al. 10 to account for a planar dielectric interface and further generalized to stratified media. 11Although this framework can describe an arbitrary number of layers with different refractive indices, only two interfaces are necessary to describe a glass coverslip placed between the sample and immersion media (Fig. 1).In this case, the focal field in the sample, after the coverslip can be written E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 4 ; 1 1 4 ; 6 8 8

16ðθ; φÞA ð0Þ ðθ; φÞe ik 0 n 1 ðx sin θ 1 cos φ þ y sin θ 1 sin φÞ e ik 0 n 3 z cos θ 3 e ik 0 ðn 3 d cos θ 3 −n 1 ðt þ dÞ cos θ 1 Þ sin θdθ dφ; (4) with d as the depth in the sample, t as the thickness of the coverslip, and n l and θ l as the refractive indices and incident angles in the immersion medium (1), coverslip (2), and sample (3), respectively.These parameters are determined according to Snell's law.Note that Λ ð3Þ ðθ; φÞ describes the polarization conversion in a heterogeneous medium after the objective aperture, including Fresnel coefficients of reflection and transmission through the coverslip.Notably, it includes the different apodization for s and p polarization.

17The third exponential term corresponds to aberrations induced along the optical path by the coverslip and the biological sample.Notably, it is independent of the polar angle θ 1 and thus describes spherical aberrations.The effect of a correction collar can hence be simulated, assuming perfect correction mechanisms, by applying the inverted aberration terms E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 5 ; 1 1 4 ; 5 1 4

18Notably, the case of a coverslip-corrected microscope objective can be computed by simply setting the correction collar to a defined value.

FASER: Vectorial PSF Simulations

19As highlighted in Eq. ( 4), the PSF in the focal region of a high NA objective lens depends on several parameters.Although these equations are well-known, performing full-vectorial simulations of the PSF in the focus of a high NA objective lens remains a complex task, and up to now, most freely available simulation tools only allow calculations for specific sets of configurations.

20FASER is intended as a pedagogical tool for microscope developers and users, as well as optical aficionados, making it possible to explore the impact of numerous parameters related to the excitation beam and focusing geometry.This flexibility facilitates simulating PSFs that one encounters under real-world experimental conditions.The following subsections outline these parameters and how they are implemented in FASER.

Numerical Calculation

21In principle, there is an infinite number of diffracted rays within the solid angle Ω that emerge from the lens aperture and propagate toward the focal region.Yet, for numerical computations, the polar θ and azimuthal angles φ are discretized into N θ and N φ steps, equally spaced by Δθ and Δφ, respectively E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 6 ; 1 1 4 ; 2 4 9

<

22:

23Consequently, the diffraction integral may be discretized by summing up a finite number of plane waves.This discretized form is more convenient for numerical computation and can be written as E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 7 ; 1 1 4 ; 1 6 3

24ðθ; φÞA ð0Þ ðθ; φÞe ik 0 n 1 ðx sin θ 1 cos φ þ y sin θ 1 sin φÞ e ik 0 n 3 z cos θ 3 e ik 0 Φ ð3Þ sin θΔθΔφ:

25The focal intensity is then calculated as the squared modulus of the electric field

Incident Beam

26The incident beam on the input pupil of the objective lens can be written E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 0 9 ; 1 1 7 ; 7 1 2 A ð0Þ ¼ A ð0Þ ðθ; φÞP ð0Þ e iΦðθ;φÞ e iMðθ;φÞ ;

27where A ð0Þ ðθ; φÞ is the complex amplitude, P 0 is the polarization of the incident beam, Φðθ; φÞ is the aberration function, and Mðθ; φÞ is the phase profile of the input beam, corresponding to the phase mask used to shape the beam.

Amplitude

28The amplitude of a Gaussian beam incident on the input plane of the objective lens can be written in cylindrical coordinates as

29; t e m p : i n t r a l i n k -; e 0 1 0 ; 1 1 7 ; 5 9 0

30where A 0 is a constant and w is the beam waist.Although passing through an aplanatic objective, the incident plane wave transforms into a spherical wave converging to the focal point.Therefore, the amplitude distribution after the objective can be expressed as

31; t e m p : i n t r a l i n k -; e 0 1 1 ; 1 1 7 ; 5 2 4

32where the cylindrical coordinate on the exit pupil of the objective lens is given by the sine condition 9 ρ ¼ f sin θ and ffiffiffiffiffiffiffiffiffiffi ffi cos θ p the apodization term ensuring energy conservation, whereas the beam passes through the objective.

Polarization

33Assuming a transverse polarization state of the input field, the incident field can be written E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 2 ; 1 1 7 ; 4 0 9

34x ðθ; φÞ P ð0Þ y ðθ; φÞ 0

35Because of the tight focusing, the objective transforms this input transverse polarization into a partially axial polarization in the focal region polarization, which can be described by the 3 × 3 lens operator matrix L θ .

36E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 3 ; 1 1 7 ; 3 1 9

37Accounting for the interface of the coverslip, the electric field polarization in the sample (3rd medium) can be written as 11 E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 4 ; 1 1 7 ; 2 4 6 P ð3Þ ðθ; φÞ ¼ Λ ð3Þ ðθ;

38where R φ represents the coordinate transformation resulting from a rotation around the z-axis, P ðlÞ corresponds to the coordinate system rotation in medium l, and I ð2Þ is the matrix that describes the effect of the coverslip, considered a stratified medium of two interfaces.

39E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 5 ; 1 1 7 ; 1 8 2

40where θ l is the focusing angle in the l'th medium and T ð2Þ s;p are the transmission coefficients in the coverslip.

41In the general case, determining the reflection and transmission coefficients through a stratified medium involves solving Maxwell's equations.However, in the case of a coverslip with only two interfaces, this simplifies the well-determined Fresnel coefficients for s-and p-polarization

42with n j and θ j as the refractive index and the incident angle in the j'th medium, respectively.For example, in the case of left-handed circular polarization E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 8 ; 1 1 4 ; 5 7 5

Optical aberrations

43In Eq. ( 9), Φðθ; φÞ represents the wavefront distortion relative to the reference sphere, an effect commonly called optical aberration.A convenient approach is to express these distortions in cylindrical coordinates on the objective pupil and to decompose them using Zernike polynomials:

44where n ∈ N is the radial degree, m ∈ Z is the azimuthal degree, and C m n and Z m n are the Zernike coefficients and polynomials, respectively. 19,20Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 0 ; 1 1 4 ; 3 1 1

45with

46These modes are normalized to R m n ð1Þ ¼ 1 which was introduced by Noll in 1975. 21ernike polynomials are widely employed to model optical aberrations due to their orthogonality (on the unit sphere).In the paraxial approximation, each polynomial function corresponds to a distinct type of optical aberration, such as astigmatism, coma, or spherical. 19,20

Phase mask

47Spatial shaping of the focal field distribution is often achieved using a phase mask Mðθ; φÞ, imprinted on the incident laser beam prior to reaching the objective lens.

48Various phase masks are available to achieve different spatial shapes.For convenience, the phase mask is expressed in spherical coordinates.

49where q ∈ R is an integer representing the topological charge of the vortex or ring, respectively.To produce a bottle beam, q has to be an odd number.θ R is the angle between the optical axis and the edge marginal ray of the π-phase ring of the phase mask.

50E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 2 ; 1 1 7 ; 6 1 9

51with r R the radius of the π-phase ring and r pup the radius of the front pupil of the objective.Finally, in the case of donut and bottle beam shaping, which are used in 3D-STED microscopy, the two PSFs are treated separately and added in the far field, assuming orthogonal polarization using a weighted sum E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 3 ; 1 1 7 ; 5 3 2

52with p ∈ ½0;1 so that p ¼ 0 and p ¼ 1 correspond to a donut-and bottle-shaped beam, respectively.

Effective Fluorescence PSF

53In the case of STED microscopy, the effective fluorescent spot results from the combined action of the excitation PSF I e (e.g., confocal, two-photon) and the de-excitation PSF I d (e.g., donut, bottle).In FASER, both are computed independently and the effective fluorescent PSF I eff is determined in every pixel as 22 E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 4 ; 1 1 7 ; 4 1 3

54where I sat represents the saturation factor accounting for the interaction between the STED laser (de-excitation) and the fluorophore.

Impact of the cranial window

55In many cases, optical access to the sample occurs via a coverslip, which serves as a layer of mutual protection for the microscope and the sample.This is a common methodology in neuroimaging, where a "cranial window" literally means a miniature fenestration in the skull of the animal that is sealed by a thin glass to avoid physical leakage in and out of the interior. 23It makes it possible to maintain the brain in physiological conditions while providing high-quality optical access for extended periods over the lifetime of the animal.To simulate this experimental configuration, we introduced an additional amplitude mask E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 5 ; 1 1 7 ; 2 2 9

56CWðθ; φÞ ¼ 1 for θ ≤ θ c transmitted rays 0 for θ c ≤ θ ≤ α blocked region :

57where θ c is the angle between the optical axis and the marginal ray of the cranial window on the output pupil of the objective.For further details, refer to Ref. 7.

58In the diffraction integral, this simply leads to a change of the integration limit to account for the reduced effective pupil size.

Case of a tilted coverslip

59In real-world conditions, orthogonality of the coverslip with respect to the optical axis can be challenging to achieve and a few degrees of deviation can easily occur, particularly in the case of in vivo imaging.A tilted interface breaks the rotational symmetry of the previous configuration and is therefore expected to affect the phase of the laser beam.Apart from spherical aberrations induced by the stratified medium from the objective to the sample, a tilted coverslip introduces significant aberrations, especially coma.However, only a few studies deal with this case, most of them using undisclosed algorithms.In FASER, we implemented an approach proposed by Berning 24 and further detailed in Ref. 25 to extend the theoretical framework presented in Sec.2.2 to this new geometry.Schematically, tilting the coverslip by an angle γ is equivalent to rotating the objective lens, and the incident beam, by an angle −γ.However, analytically, it is simpler to derive the focal field using the rotated objective lens method.Indeed, tilting the coverslip requires modifying Eq. ( 4), and notably, the integration range and the boundary conditions.By contrast, the second method can simply be realized through a transformation of the pupil function to rotate the spherical wavefront A ð1Þ around the origin 0. The integration limit on θ is expanded to α þ jγj, to ensure the entire wavefront is accounted for without clipping, while the amplitude of the beam falling out of the pupil is set to 0. The new pupil function A ð0Þ γ ðθ; φÞ is essentially the pupil function of the untitled case but evaluated at the transformed position A ð0Þ ðθ 0 ; φ 0 Þ.The rotated coordinate can be expressed as follows:

60E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 6 ; 1 1 4 ; 5 5 1

61with E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 7 ; 1 1 4 ; 5 0 2 x 0 y 0 ¼ f cos γ cos φ sin φ − sin γ cos θ sin φ sin θ

62All parameters related to the objective lens, and hence to its coordinate system, have to be transformed in this way, notably the apodization factor and the phase correction term [Eq.( 5)].

63E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 2 8 ; 1 1 4 ; 4 4 1

64ðθ; φÞA ð0Þ ðθ 0 ; φ 0 ÞCWðθ; φÞe iΦðθ 0 ;φ 0 Þ e iMðθ 0 ;φ 0 Þ e ik 0 n 1 ðx sin θ 1 cos φ þ y sin θ 1 sin φÞ e ik 0 n 3 z cos θ 3 e ik 0 ðn 3 d cos θ 3 0 −n 1 ðt þ dÞ cos θ 1 0 Þ sin θdθ dφ:

654 Installation

66FASER provides high-level functions for configuring and running simulations of focused light fields and was written as a Napari plugin.Its graphical user interface (GUI) is depicted in Fig. 2. We offer three primary ways to use FASER, each intended to support different use cases.

67• First, FASER is available as a plugin directly through the Napari Plugin Hub.This makes it straightforward to install into an existing Napari environment without requiring programming knowledge.The plugin can be found in Ref. 26. • Second, FASER can be installed as a standalone tool in any Python 3.10 environment by running pip install faser napari[pyqt5].It can be launched using qtfaser.This approach includes a command-line interface, enabling its integration into automated computational workflows-for instance, to run multiple simulations while exploring a larger parameter space.• Third, FASER can be installed directly from its source code hosted at https://github.com/jhnnsrs/faser.To do so, first, create a new environment with Python 3.10.11and install Napari pip install napari.Then, clone the FASER repository using git clone https:// github.com/jhnnsrs/faser.git,navigate to the cloned directory with cd faser, and install FASER using pip install to ensure all dependencies are installed.Finally, start Napari by running python nap.py.

FASER Design and Implementation-Example Case of STED Microscopy

68The objective of FASER is to provide an open-access, educational tool for simulating the excitation PSF of a microscope.The GUI simplifies setting calculation parameters that define the simulation, and key parameters including the input beam, the geometry of focalization, and the numerical computation parameters.

69As an example, in the following sections, we focus on FASER's capability to simulate toroidal PSFs used in STED microscopy.However, as detailed in Secs. 2 and 3, FASER is based on vectorial diffraction theory, which offers a general framework for computing the PSF of any optical system.Therefore, the examples presented here can be extended to other microscopy techniques.It is important to note that currently, FASER only considers excitation PSFs.Other parameters, such as pinhole sizes that come into play in confocal microscopy, would need to be included to compute the emission PSF.

Main Widgets

70The main widget contains four tabs designed for configuring simulated parameters, input beam properties-including potential aberrations stemming from flawed optics and setup alignment before the objective lens-and setting the focalization geometry under consideration.Unless otherwise specified, default values set in FASER were applied for the calculation.

Simulation parameters

71The first tab is used to set simulation parameters such as the number of pixels in X, Y, and Z directions, along with the observation scale.In addition, the number of integration steps in φ and θ angles are defined here.A check box allows normalization of the maximum pixel value of the PSF intensity to 1. Beyond default values, all these parameters can be independently set prior to launching the simulations.

72Figure 3 illustrates the effects of these parameters on computation time and PSF accuracy.As expected, computation time increases quadratically with the number of pixels in the X and Y directions (defined as a common parameter: N XY ).Conversely, changing the number of integration steps N θ from 5 to 15 strongly impacts the simulated PSF, particularly the quality of the zero in the center.Increasing the number of steps has a more limited impact on the results.As a compromise between speed and accuracy, the default values of pixel number and integration steps are set to 31.However, it is worth noting that the optimal number of integration steps depends on the complexity of the phase mask and the aberration profile of the incident beam.Through various configurations, we found a good compromise between computation time and number of pixels and steps.Yet, simpler PSFs (such as a Gaussian beam) can be appropriately computed with fewer steps, whereas highly structured PSFs might fare better with a higher number of pixels and steps.

73To facilitate efficient computation in the Python environment, FASER employs strategies of Just-In-Time Compilation (utilizing Numba) and employs lazy compute patterns through Dask.The computing times provided in the next section have been obtained on a standard desktop running on Windows 11 Pro 64 bits, equipped with an Intel core i5-1335U processor (1.30GHz) and 16 GB of RAM.

Focusing geometry

74The second tab serves to define the focalization geometry under consideration, as depicted in Fig. 4.This includes specifying the objective parameters (NA, working distance, refractive index of the immersion media and correction collar), details about the coverslip (refractive index, thickness, tilt), and the characteristics of the sample (refractive index, depth).In addition, to account for a potential cranial window used for in vivo imaging, an aperture is added right after the objective lens.

75Figure 4(b) illustrates the impact of a cylindrical cranial window.As expected, the window reduces the effective numerical aperture, leading to an extended focus.The impact of the cranial window geometry in STED microscopy has been previously described. 27In addition, a tilt angle of the coverslip introduces severe distortions of the PSF as reported. 25This parameter is particularly critical in vivo, where tilt angles ∼1 deg can inadvertently be introduced.

Input beam parameters

76Intensity distribution, polarization, and phase mask.The third tab in the main widget is used to define the properties of the input beam.The intensity profile incident on the input pupil of the objective is defined as a Gaussian profile with a specified wavelength and waist.In addition, a misalignment of the input beam can be modeled through an offset of the intensity profile.A "show intensity" push-button allows visualization of the input profile on the back pupil of the objective lens [see Fig. 5(a)].Furthermore, a phase mask can be applied to the input beam.A toggle box allows the selection of desired profiles (Gaussian, donut, bottle, or donut and bottle).Alternatively, a customdefined phase mask can be loaded.Donut beams are formed using a vortex phase mask defined by an integer vortex charge.Bottle beams are generated with a ring phase mask defined by the ring radius and charge.In both cases, an offset can be introduced to model a misalignment of the phase mask with respect to the optical axis of the objective.Last, a combination of donut and bottle beams, commonly used in 3D-STED microscopy, can be modeled with a parameter p indicating the intensity split between the two-phase modulations.Once again, a "show phase mask" push-button enables to visualize the imprinted mask on the back pupil of the objective lens [see Fig. 5(b)].

77Figure 5 illustrates the impact of different parameters (polarization, phase mask offset) on the donut beam PSF.It illustrates that mask misalignment can easily be mistaken for optical aberrations, as previously investigated and quantified. 28,29In addition, a detailed study of the effect of STED beam polarization can be found in Hao et al. 30 Optical aberrations.Beyond the phase mask, to model a realistic optical system, optical aberrations can be added to the incident beam.We focused on the first-order aberrations (tip, tilt, astigmatism, Coma, trefoil, and spherical) as well as second-order spherical aberration, as they represent the dominant aberrations in optical microscopy.The fourth and final tab of the main widget allows independent setting of the coefficients for these 11 modes, as well as an offset of the aberrated wavefront.A push-button "show aberrations" enables visualization of the input profile on the back pupil of the objective lens [see Fig. 6(a) for an example].

78Figure 6 illustrates the effect of the most classical aberrations on the mixture of donut and bottle beam profiles.

Helper Widgets

79As explained above, the main widget serves to define the simulation parameters for the PSFs.FASER also incorporates several helper widgets, providing additional functionality (Fig. 7).

80The first tab enables the computation of the effective PSF for the case of STED microscopy.The user has to select two previously simulated PSFs: one for excitation and one for depletion.The effective PSF is computed using the defined saturation factor according to Eq. (24).

81A sample tab enables the simulation of an artificial sample of defined size in all three dimensions, with a specified number of points randomly distributed.The next tab serves to convolve images.It is originally intended to convolve a simulated PSF with a sample space, illustrating how a modified PSF impacts the image.Additional structures (line grid and concentric circles) were added to illustrate the impact of PSF distortion on the particular features in the images.

82An export tab makes it possible to save a z-stack of the simulated PSF as a.tiff file.This includes saving the simulation parameters as metadata accompanying the data.

Fig. 1

83Fig. 1 Schematic of the geometry used for the simulations.(a) Using vectorial diffraction theory, the incident pupil field Aðr ; φÞ is transformed into a spherical wavefront through the objective lens and then propagated to the focal spot.The focal intensity is calculated at any point P in the vicinity of the focus O.The focalization process is computed through the stratified media consisting of immersion liquid, coverslip, and sample.(b) The ellipticity, intensity profile, and potential aberrations in the input beams are determined before the objective.A phase mask can also be added in the context of beam shaping, as in the case of STED microscopy.

ik 2 t cos θ 2 ; ( 16 )

84Roos, Bancelin, and Nägerl: FASER: a tool for vectorial point spread function. . .with t as the thickness of the coverslip and t ðjÞ s;p and r ðjÞ s;p as the amplitude transmission and reflection coefficient at the j'th interface, respectively E Q -T A R G E T ; t e m p : i n t r a l i n k -; e 0 1 7 ; 1 1 4 ; 6 7 1

85G E T ; t e m p : i n t r a l i n k -; e 0

86¼ 0 Mðθ; φÞ ¼ qφ Mðθ; φÞ ¼ qπ for θ ≤ θ M 0 for θ M ≤ θ ≤ α

Fig. 2

87Fig.2FASER GUI.Based on the Napari viewer, FASER features a main widget window with multiple tabs to set the simulation parameters and the property of the input beam and define the focusing geometry.A helper widget window provides additional tabs to compute the effective PSF in STED microscopy, simulate an artificial object, convolve it with the PSF, and export the simulated stacks of images.

Fig. 3

88Fig. 3 Simulation parameters.(a) Schematic of the simulation configuration.(b) Computation time as a function of the number of XY pixels in the computed volume.(c) Lateral (2 × 2 μm 2 ) and axial (2 × 4 μm 2 ) views of a bottle-shaped PSF for different θ integration steps.

Fig. 4

89Fig. 4 Focusing geometry.(a) Schematic of the optical geometry after the microscope objective.(b) PSF simulation with and without a cylindrical cranial window. 27(c) Impact of a tilted coverslip on the donut-beam profile.Image size 2 × 2 μm 2 for XY views and 2 × 4 μm 2 for XZ views.

Fig. 5

90Fig. 5 Input beam.(a) Pop-up window displaying the intensity profile on the back pupil of the objective.(b) Pop-up window showing the phase mask imprinted on the input beam.(c) Effect of the polarization on donut beam PSF (in-plane views -2 × 2 μm 2 ).(d) Donut and bottle profiles at different p ratios (axial views -2 × 4 μm 2 .(e) Impact of misaligned vortex mask on the donutshaped PSF.

FASER

91also allows the user to set the polarization of the beam.A toggle box allows selection between elliptical (default), radial, or azimuthal polarization.For elliptical polarization, ϵ control the ellipticity (−45 deg right-handed circular, 0 deg linear, and 45 deg left-handed circular) and Ψ the polarization direction.

Fig. 6

92Fig. 6 Optical aberrations.(a) Pop-up window showing an example of an aberrated wavefront (a mixture of aberrations) on the back pupil of the objective.(b) Impact of the main aberrations on donut and bottle PSFs (with p ¼ 0.5).Lateral views 2 × 2 μm 2 and axial views 2 × 4 μm 2 .

Fig. 7

93Fig. 7 Helper widget.(a) Example of an effective PSF calculated from the excitation and depletion PSFs (left panels) for various saturation factors.(b) Example of a generated space (100 × 100 × 10 μm 3 ) with 1000 spots.(c) Convolution with the donut and bottle PSF.

94Roos, Bancelin, and Nägerl: FASER: a tool for vectorial point spread function. . .Neurophotonics 017801-13 Jan-Mar 2025 • Vol.12(1)

참고문헌 16건

  1. Thinned-skull cranial window technique for long-term imaging of the cortex in live mice Nature Protocols · Nature Portfolio · 2010 10.1038/nprot.2009.222
  2. Adaptive optics enables 3D STED microscopy in aberrating specimens Optics Express · Optica Publishing Group · 2012 10.1364/oe.20.020998
  3. Resolution scaling in STED microscopy Optics Express · Optica Publishing Group · 2008 10.1364/oe.16.004154
  4. Fast focus field calculations Optics Express · Optica Publishing Group · 2006 10.1364/oe.14.011277
  5. Wave front sensor-less adaptive optics: a model-based approach using sphere packings Optics Express · Optica Publishing Group · 2006 10.1364/oe.14.001339
  6. Is phase-mask alignment aberrating your STED microscope? Methods and Applications in Fluorescence · IOP Publishing · 2015 10.1088/2050-6120/3/2/024002
  7. Electromagnetic diffraction of light focused through a stratified medium Applied Optics · Optica Publishing Group · 1997 10.1364/ao.36.002305
  8. Aberrations and adaptive optics in super-resolution microscopy Microscopy · Oxford University Press · 2015 10.1093/jmicro/dfv033
  9. Aberrations in stimulated emission depletion (STED) microscopy Optics Communications · Elsevier BV · 2017 10.1016/j.optcom.2017.06.037
  10. Effects of aberrations on effective point spread function in STED microscopy Applied Optics · Optica Publishing Group · 2018 10.1364/ao.57.004164
  11. Full volume super-resolution imaging of thick mitotic spindle using 3D AO STED microscope Biomedical Optics Express · Optica Publishing Group · 2019 10.1364/boe.10.001999
  12. Multicolor three-photon fluorescence imaging with single-wavelength excitation deep in mouse brain Science Advances · American Association for the Advancement of Science · 2021 10.1126/sciadv.abf3531
  13. Aberration correction in stimulated emission depletion microscopy to increase imaging depth in living brain tissue Neurophotonics · SPIE · 2021 10.1117/1.nph.8.3.035001
  14. Long-term STED imaging of membrane packing and dynamics by exchangeable polarity-sensitive dyes Biophysical Reports · Elsevier BV · 2021 10.1016/j.bpr.2021.100023
  15. Imaging dendritic spines in the hippocampus of a living mouse by 3D-stimulated emission depletion microscopy Neurophotonics · SPIE · 2023 10.1117/1.nph.10.4.044402
  16. Impact of a tilted coverslip on two-photon and STED microscopy Biomedical Optics Express · Optica Publishing Group · 2023 10.1364/boe.510512