Photonics Research, Volume. 13, Issue 3, 743(2025)

High-speed image reconstruction for nonlinear structured illumination microscopy

Jingxiang Zhang1, Tianyu Zhao1, Xiangda Fu1, Manming Shu1, Jiajing Yan1, Mengrui Wang1, Yansheng Liang1, Shaowei Wang1, and Ming Lei1,2、*
Author Affiliations
  • 1MOE Key Laboratory for Nonequilibrium Synthesis and Modulation of Condensed Matter, School of Physics, Xi’an Jiaotong University, Xi’an 710049, China
  • 2State Key Laboratory of Electrical Insulation and Power Equipment, Xi’an Jiaotong University, Xi’an 710049, China
  • show less

    By exploiting the nonlinear responses of fluorescent probes, the spatial resolution of structured illumination microscopy (SIM) can be further increased. However, the traditional reconstruction method of nonlinear structured illumination microscopy (NL-SIM) is very slow due to its complex process, which poses a significant challenge to display super resolution results in real-time. Here, we describe an efficient and robust SIM algorithm that enables rapid and accurate full-process SIM reconstruction. First, we present a fast illumination parameters estimation algorithm based on discrete Fourier transforms that result in a more simplified workflow than that of classical methods. Second, an accelerated NL-SIM reconstruction algorithm is developed by extending a high-speed reconstruction framework, joint space and frequency reconstruction (JSFR), to the NL-SIM. In particular, we provide the open-source MATLAB toolbox of our JSFR-NL-SIM algorithm. The entire image reconstruction process is completed in the milliseconds range, representing a significant time saving for the user.

    1. INTRODUCTION

    Super resolution structured illumination microscopy (SR-SIM) has gained significant attention in the life sciences for imaging living cells [1] due to its high spatial resolution, high imaging speed, and low phototoxicity [27]. However, the resolution of linear SIM (L-SIM) is lower compared with STED [8] and PALM [9], which limits its application in many scenarios. To further improve the spatial resolution of SIM, nonlinear saturated SIM (SSIM) [10,11] was developed and successfully applied to observe the photostable sample with a resolution of <50  nm, but SSIM suffered from the severe phototoxicity and low frame rates. An intriguing approach involves using the switching of chemical states to achieve saturation for addressing high-illumination intensity [12]. In this circumstance, reversibly photoswitchable fluorescent proteins (RSFPs) offer significant advantages for achieving super resolution at much lower light intensities [1215]. Hirvonenet et al. discussed the use of the photoswitchable protein Dronpa with SIM to achieve nanometer scale resolution [12]. With the development of the photoswitchable protein, Li et al. proposed a nonlinear structured illumination microscopy (NL-SIM) technique called patterned activation of photoswitchable fluorophores (PA NL-SIM) to achieve 45 nm resolution in approximately 20 to 40 frames using recently developed RSFPs, termed Skylan-NS [14,16]. In general, NL-SIM generates high-order harmonics of the sample spatial frequency using the nonlinear responses of the fluorescent probes, further extending the spatial resolution to more than three times the traditional diffraction limits.

    In recent years, the application of super resolution microscopy in live cell imaging has led to increased interest in real-time reconstruction and display of SR-SIM images [7,1719]. These technologies provide the users with almost instantaneous feedback, similar to that of a traditional widefield microscope, resulting in significantly improved work efficiency [18,20]. NL-SIM collects more raw images to solve the higher-frequency spectral component, which increases the computational burden of image reconstruction compared to linear SIM. Meanwhile, the NL-SIM reconstruction methods are mainly based on Gustafsson’s algorithm, which involves several operations, including image decomposition and reconstruction, all of which are manipulated in the frequency domain [10,13,16]. Achieving real-time imaging in NL-SIM is a significant challenge due to the sophisticated analysis required to eliminate reconstruction artifacts [2123] and balance separated frequency components [6,2325]. Obtaining a single super resolution (SR) image typically takes tens of seconds, which poses a significant challenge to achieve real-time imaging in NL-SIM. Alternative approaches focus on reconstructing the SR image in the real space by summing up the weight images [26,27]; however, these efforts do not consider the out-of-focus signal and noise elimination and artifacts reduction.

    Meanwhile, the accurate estimation of the illumination parameters, including wave vector, initial phase, and modulation depth, is critical to reconstruct high-fidelity SR images. Numerous algorithms for the illumination parameters estimation have emerged, which can be categorized as iteration-free and iterative methods. The iteration-free methods, such as PCA-SIM, image recombination transform (IRT), and non-iterative auto-correlation reconstruction (ACR), which significantly improve the estimation speed, still suffer from the lack of precision. In contrast, the iterative cross-correlation (COR) algorithm maintains high accuracy and robustness even at low SNRs by iteratively searching for the precise peak location, but at the cost of computational complexity.

    In our previous work, we proposed a hybrid reconstruction method termed the joint space and frequency reconstruction (JSFR) method for linear SIM [17]. This simplified protocol decomposes the SR image into the multiplication of a sequence of patterned images with weighted coefficients, and omits the complex frequency operations in the conventional Wiener-SIM [26]. The JSFR-SIM is capable of millisecond reconstruction without compromising spatial resolution. However, the previous algorithm did not consider parameter estimation, leaving the reconstruction process incomplete.

    In this paper, we present a fast full-process reconstruction strategy for NL-SIM, called JSFR-NL-SIM, which includes an efficient illumination parameter estimation algorithm and extends the JSFR concept to the nonlinear SIM regime for fast SIM reconstruction. The execution time of the illumination parameter estimation is reduced to 50 ms (10 ms per direction, including the wave vector, initial phase, and modulation depth) and 5 ms for the reconstruction of 512×512-pixel-sized raw images. Experimental results demonstrate that the image quality obtained with this new method is equivalent to that of the conventional algorithm. The formulae for JSFR-NL-SIM have been rigorously derived (see Appendices AE for detailed workflow comparison and mathematical derivation). The objective of this work is to introduce a technique for rapidly reconstructing NL-SIM images and to promote the widespread adoption of our rapid NL-SIM reconstruction algorithms in biomedical laboratories in the future.

    2. METHODS

    A. Main Reconstruction Workflow of JSFR-NL-SIM

    Several NL-SIM implementations have been developed to date, including saturated SIM [10,11], NL-SIM based on fluorescent photoswitchable proteins [13,16], NL-SIM based on surface plasmons [28], and NL-SIM based on STED [29]. The generalized Wiener reconstruction workflow is used for NL-SIM [2]. In this method, the acquired raw images are transformed into the Fourier domain, and all spectrum components are extracted by solving a set of linear equations. The components that were extracted are then multiplied by OTF, shifted to their true position, and added together. Finally, Wiener deconvolution is used to enhance resolution. However, several issues arise from the above reconstruction workflow. First, NL-SIM inherits the linear SIM reconstruction algorithm, which makes it difficult to overcome the intrinsic limitations of complex computation, resulting in a very challenging task to improve the reconstruction speed. Second, parameter estimation is not discussed in detail in NL-SIM, which consumes a lot of time. Finally, the Wiener reconstruction workflow is susceptible to the out-of-focus signal [30,31] and related sidelobe artifacts [24,32]. To address these issues, we developed a full-process NL-SIM reconstruction workflow, termed JSFR-NL-SIM, which is capable of rapidly reconstructing high-fidelity SR images. The whole workflow is shown in Fig. 1. In general, the proposed JSFR-NL-SIM contains a computational routine and a preparation procedure. The computational routine contains two parts, a fast illumination parameters estimation algorithm and an NL-SIM reconstruction scheme based on joint spatial and frequency domain reconstruction. The preparation procedure aims to pre-calculate the optimization filter and the coefficient functions for the performance enhancement. Therefore, once the raw images are collected, the JSFR-NL-SIM is able to rapidly perform the parameters estimation and SR image reconstruction.

    The workflow of JSFR-NL-SIM can be divided into two parts: preparation procedure and computational routine. During the preparation procedure, optimization functions and coefficient functions are required to calculate in advance. In the computational routines, parameters estimation is first performed and then 25 raw images are filtered with the pre-calculated attenuation function. The intermediate images are obtained by summing the results of multiplying the coefficient functions with the filtered images. The final SR image is then reconstructed by filtering the optimization functions.

    Figure 1.The workflow of JSFR-NL-SIM can be divided into two parts: preparation procedure and computational routine. During the preparation procedure, optimization functions and coefficient functions are required to calculate in advance. In the computational routines, parameters estimation is first performed and then 25 raw images are filtered with the pre-calculated attenuation function. The intermediate images are obtained by summing the results of multiplying the coefficient functions with the filtered images. The final SR image is then reconstructed by filtering the optimization functions.

    B. DFT-Based Rapid Illumination Parameters Estimation

    In the first part of the computational routine, a fast illumination parameters estimation algorithm based on discrete Fourier transform (DFT) implements a local discrete Fourier transform to replace the computationally expensive iterative cross correlation operation for directly locating the wave vector with subpixel accuracy. For the conventional COR algorithm, hundreds of peak searches and corresponding cross-correlation operations impose a heavy computational burden. To address these issues, we develop an iteration-free accelerated COR algorithm, which first locates the wave vector in the integer-level precision and then directly determines the peak location in the subpixel-level precision by utilizing discrete Fourier transform. Specifically, the cross-correlation between the zeroth-order spectrum and first-order spectrum is first executed to obtain the rough integer wave vector location (u0,v0) [Figs. 2(b) and 2(c)]. In order to reduce the contribution of the low-frequency signal of separated spectrum and automatically detect the peak, we apply the notch filter to the separated spectrum and cross-correlation map. Subsequently, following Eq. (1), a localized DFT is performed using matrix multiplication to upsample the cross-correlation map in a small neighborhood (for example, 1.5×1.5 pixels around the initial integer level pixel). Then the local DFT matrix centered on this location can be calculated [Fig. 2(c)] [33]: F(u,v)=exp(i2πuxTMα)·C(x,y)·exp(i2πyvTNα),where C(x,y) is the cross-correlation map and the vector (uMα,vNα) is the span subpixel coordinate centered on the pixel (u0,v0); α is the upsampling factor. This operation outputs an array with dimensions of (1.5κ,1.5κ), where κ is the upsampled factor. Actually, the final searching region is the neighborhood of the (u0,v0) with an upsampling factor α by utilizing Eq. (1), which directly locates the peak of the wave vector in subpixel with minimal computation burden. For NL-SIM, predicting the illumination parameters under the five directions requires a total of approximately 50 ms.

    Workflow of the parameter estimation of the proposed JSFR-NL-SIM. (a) Raw image stack. (b) Separated spectrum components. (c) Flowchart of the wave vector estimation using the proposed method. (d) Initial phase estimation. (e) SR image reconstructed by the full-process workflow.

    Figure 2.Workflow of the parameter estimation of the proposed JSFR-NL-SIM. (a) Raw image stack. (b) Separated spectrum components. (c) Flowchart of the wave vector estimation using the proposed method. (d) Initial phase estimation. (e) SR image reconstructed by the full-process workflow.

    C. Rapid NL-SIM Reconstruction in the Spatial Domain

    In contrast to Wiener-NL-SIM, which reconstructs the SR image in the frequency domain, the JSFR-NL-SIM reconstructs the SR image in the spatial domain.

    First, raw images are filtered with the designed Wiener-type filter [34], as follows: Difiltered(x)=F1{F[Di(x)]G(k)},where G(k) represents the Wiener-type filter, Di(x) are the patterned raw images, and Difiltered(x) are the filtered raw images. The general form of the NL-SIM reconstruction algorithm is deduced from the perspective of the spatial domain. All the filtered images Difiltered(x) contribute to the intermediate image ISR(x) with the corresponding coefficient function ci(x), as the following equation. Details can be found in Appendix B. ISR(x)=i=15ci(x)Difilter(x).

    We assume the general phase step of NL-SIM raw data is 2π(i1)/N, and specifically set to 2π(i1)/5 in our case. The coefficient function is shown as follows: [c1(x)c2(x)c3(x)c4(x)c5(x)]=[111111cosΔφcos2Δφcos3Δφcos4Δφ0sinΔφsin2Δφsin3Δφsin4Δφ1cos2Δφcos4Δφcos6Δφcos8Δφ0sin2Δφsin4Δφsin6Δφsin8Δφ]1[1I01m1I0cos(ωx+φ0)1m1I0sin(ωx+φ0)1m2I0cos[2(ωx+φ0)]1m2I0sin[2(ωx+φ0)]].

    The coefficient functions ci(x) are only associated with the illumination parameters, which can be calculated using the proposed DFT-based parameter estimation algorithm and classical COR algorithm. According to the calculated coefficient functions, an intermediate image without deconvolution can be obtained. Finally, we multiply the intermediate image ISR(x) with the optimization functions for final deconvolution, as follows: ISR-final(x)=F1{F[d=15p=15ci(x)Difilter(x)]·W(k)},where ci(x) is the coefficient function and W(k) is the optimization functions containing two filters W1 and W2, which are designed to approach the ideal spectrum and suppress the spectrum’s peak to eliminate the out-of-focus signal, noise, and related sidelobe artifacts [6,35] (Appendix C).

    We also demonstrate the connection between the reconstruction algorithm in the spatial domain and the Fourier domain. In the spatial domain, the final image can be represented as a linear combination of the intermediate images with the weighted coefficients, as follows (Appendix D): R1(x)=eiφ02F1[O˜(kω)·H˜(k)]eiφ02F1[O˜(k+ω)·H˜(k)],R2(x)=eiφ02iF1[O˜(kω)·H˜(k)]eiφ02iF1[O˜(k+ω)·H˜(k)],R3(x)=e2iφ02F1[O˜(k2ω)·H˜(k)]e2iφ02F1[O˜(k+2ω)·H˜(k)],R4(x)=e2iφ02iF1[O˜(k2ω)·H˜(k)]e2iφ02iF1[O˜(k+2ω)·H˜(k)],where ω and φ0 are denoted as the angular frequency and the initial phase of the illumination patterns, respectively. In the Fourier domain, the above equations can be written as O˜(kω)·H˜(k)=eiφ0F[R1(x)+iR2(x)],O˜(k+ω)·H˜(k)=eiφ0F[R1(x)iR2(x)],O˜(k2ω)·H˜(k)=e2iφ0F[R3(x)+iR4(x)],O˜(k+2ω)·H˜(k)=e2iφ0F[R3(x)iR4(x)].

    We demonstrate the inherent connection of five separated spectra in the frequency domain O(k)H(k), O(k±ω)H(k), and O(k±2ω)H(k) with the intermediate images, and verify that the result of the reconstruction image recovered in the spatial domain is equivalent to that in the Fourier domain.

    3. RESULTS

    A. JSFR-NL-SIM Improved the Resolution without Reconstruction Time Increased

    We first validated the reconstruction performance by applying the JSFR-based workflow in linear SIM, NL-SIM (1HOH, one higher-order harmonic), and NL-SIM (2HOH, two additional higher-order harmonics) [7]. The SR image obtained with JSFR-SIM improved the resolution by up to a factor of two and the resolution was further improved by approximately three times and four times by generating 1HOH and 2HOH with JSFR-NL-SIM [see Figs. 3(c)–3(h)]. Furthermore, we have compared the reconstruction time of the JSFR-NL-SIM with that of the HiFi-NL-SIM [15,18] in both the NL-SIM (1HOH) and NL-SIM (2HOH) scenarios [Fig. 3(i)]. The results demonstrate that for the circumstance of NL-SIM (1HOH), the execution time of JSFR-NL-SIM’s reconstruction procedure is around 5.5 ms, when handling input images with 512×512 pixels, while in the scenario of NL-SIM (2HOH), the reconstruction time is around 8.9 ms. The reconstruction speed was compared using MATLAB (R2023a, Math Works Inc., Natick, Massachusetts, United States). The reconstruction codes for HiFi-NL-SIM and JSFR-NL-SIM (both CPU and GPU versions) were executed on a personal computer (Intel Core i7-13700K@2.1 GHz, DRR4 3200 MHz 64 GB, NVIDIA GeForce RTX 4070ti 12 GB, Samsung 860 EVO 500 GB SSD) running Windows 10.

    Simulation results to demonstrate the quality of JSFR-NL-SIM. (a) Ground truth. (b) Widefield image. (c) SR image reconstructed by JSFR-SIM. (d) SR image reconstructed by JSFR-NL-SIM. (e) SR image reconstructed by JSFR-NL-SIM with two additional higher-order harmonics (2HOH). (f) Zoom-in views of the blue boxes and yellow boxes in (b)–(e). (g) Spectra of (b)–(e). (h) Intensity profiles of green lines in (b)–(e). (i) Execution time of JSFR-based workflow and HiFi-based workflow in the same GPU environment; unit, millisecond. (j) Ideal spectrum.

    Figure 3.Simulation results to demonstrate the quality of JSFR-NL-SIM. (a) Ground truth. (b) Widefield image. (c) SR image reconstructed by JSFR-SIM. (d) SR image reconstructed by JSFR-NL-SIM. (e) SR image reconstructed by JSFR-NL-SIM with two additional higher-order harmonics (2HOH). (f) Zoom-in views of the blue boxes and yellow boxes in (b)–(e). (g) Spectra of (b)–(e). (h) Intensity profiles of green lines in (b)–(e). (i) Execution time of JSFR-based workflow and HiFi-based workflow in the same GPU environment; unit, millisecond. (j) Ideal spectrum.

    Nonlinear structured illumination microscopy (NL-SIM) produces an infinite number of harmonics, corresponding to theoretically infinite resolution. However, resolving for more high-frequency information requires the acquisition of more raw images, which will undoubtedly increase the computational burden of image reconstruction. Specifically, detecting two higher-order harmonics requires 63 raw images to reconstruct the nearly isotropic resolution SR image, which involves more complex computations and further limits the feasibility of real-time imaging. In such scenarios, JSFR-NL-SIM has more advantages in reconstructing SR images, as demonstrated in Fig. 3. The execution time for reconstructing linear SIM, nonlinear SIM with one higher-order harmonic (1HOH), and nonlinear SIM with two additional higher-order harmonics (2HOH) with an image pixel number of 512×512 was simulated using the JSFR-NL-SIM and HiFi-NL-SIM. The simulation results indicate that the execution time of the HiFi-NL-SIM increases significantly with the number of spectra to be decomposed, while the execution time of the JSFR-NL-SIM increases linearly, with all processes running in milliseconds. This demonstrates the superiority of the JSFR-NL-SIM in terms of reconstruction time. However, due to the low SNR, the second higher-order harmonic signal is easily submerged in the noise. Therefore, when more efficient fluorophores become available in the future, we believe that JSFR-NL-SIM will provide more comprehensive support.

    B. JSFR-NL-SIM Accelerates the Reconstruction Significantly

    Performance analysis of JSFR-NL-SIM reconstructed on raw data with high out-of-focus signal and noise. (a) Widefield image of F-actin filaments. (b)–(d) SR images reconstructed using Wiener-NL-SIM provided by BioSR, HiFi-NL-SIM, and JSFR-NL-SIM. (e) Magnified images of (a)–(d), corresponding to the green box of (a), where out-of-focus signal and filament artifacts are produced by GT-SIM but eliminated in HiFi-NL-SIM and JSFR-NL-SIM. In (f) the yellow arrows indicate the sidelobe artifact while in (g), the red arrows represent the out-of-focus signal. The intensity profiles of both yellow lines are shown in (h). The scale bars are 5 μm in (a)–(d), 1 μm in (e), and 500 nm in (f) and (g).

    Figure 4.Performance analysis of JSFR-NL-SIM reconstructed on raw data with high out-of-focus signal and noise. (a) Widefield image of F-actin filaments. (b)–(d) SR images reconstructed using Wiener-NL-SIM provided by BioSR, HiFi-NL-SIM, and JSFR-NL-SIM. (e) Magnified images of (a)–(d), corresponding to the green box of (a), where out-of-focus signal and filament artifacts are produced by GT-SIM but eliminated in HiFi-NL-SIM and JSFR-NL-SIM. In (f) the yellow arrows indicate the sidelobe artifact while in (g), the red arrows represent the out-of-focus signal. The intensity profiles of both yellow lines are shown in (h). The scale bars are 5 μm in (a)–(d), 1 μm in (e), and 500 nm in (f) and (g).

    For the setting of the reconstruction parameters, we set the strength and Wiener parameter in the Wiener-type filter and two constants of the optimization filters w1 and w2 to 0.91, 0.5, 0.5, and 0.1, respectively. The discussion of the reconstruction parameters is shown in Fig. 5. In particular, we always set the strength parameter of the Wiener-type filter to 0.9–0.99 and keep the Wiener parameters w1 and w2 as 0.5, 0.5, and 0.1, respectively.

    Discussion of reconstruction parameters on final SR image. (a)–(d) The effect of attenuation parameter, Wiener-type filter’s parameter, optimization filter1 parameter, and optimization filter2 parameter. The intensity of (a)–(d) is the white line along plane (e). (f)–(h) Intensity of the images filtered with Wiener-type filter, optimization filter1, and optimization filter2. The scale bars are 5 μm in (a)–(c) and 1 μm in (d).

    Figure 5.Discussion of reconstruction parameters on final SR image. (a)–(d) The effect of attenuation parameter, Wiener-type filter’s parameter, optimization filter1 parameter, and optimization filter2 parameter. The intensity of (a)–(d) is the white line along plane (e). (f)–(h) Intensity of the images filtered with Wiener-type filter, optimization filter1, and optimization filter2. The scale bars are 5 μm in (a)–(c) and 1 μm in (d).

    C. JSFR-NL-SIM Produces High-Fidelity SR Images

    Finally, we demonstrate the ability of JSFR-NL-SIM to produce high-fidelity images with the F-actin filaments, as shown in Figs. 4 and 6. In the widefield image, the clear visualization of the intersected filaments is masked with the highly out-of-focus signal, obstructing the observation of cellular details [Fig. 6(a)]. After executing different reconstruction approaches, the out-of-focus signal has been effectively eliminated. However, the ability of GT-SIM to restrain sidelobe artifacts and honeycomb artifacts induced by a strong out-of-focus signal is moderate. By employing the HiFi-NL-SIM and JSFR-NL-SIM, these artifacts are eliminated successfully [Figs. 6(a) and 6(b)]. In addition, the SR image reconstructed by JSFR-NL-SIM maintains the linear relationship from the intensity profiles [Figs. 4(h) and 6(c)]. We demonstrate the whole image quality using decorrelation analysis [38] [Fig. 6(f)], where the resolution of the widefield image is approximately 260 nm and that of the super resolution image is about 70 nm. We also estimate the local resolution [39] by subdividing the image into smaller tiles and calculating its histogram, where the minimum resolution is 48 nm and that of maximum is 113 nm [Figs. 6(d) and 6(e)].

    Reconstruction results from the BioSR dataset. (a) displays the reconstruction results of F-actin filaments, including widefield image and the SR images reconstructed by traditional Wiener-NL-SIM (termed GT-SIM, provided by BioSR dataset), HiFi-NL-SIM, and the proposed JSFR-NL-SIM. (b) provides zoomed-in views of (a), corresponding to the white box in (a). (c) Intensity profiles of the white lines in (b). (d), (e) Location resolution estimation and corresponding histogram of blue box in (a). (f) Decorrelation analysis to evaluate resolution. The scale bars are 5 μm in (a) and 1 μm in (b).

    Figure 6.Reconstruction results from the BioSR dataset. (a) displays the reconstruction results of F-actin filaments, including widefield image and the SR images reconstructed by traditional Wiener-NL-SIM (termed GT-SIM, provided by BioSR dataset), HiFi-NL-SIM, and the proposed JSFR-NL-SIM. (b) provides zoomed-in views of (a), corresponding to the white box in (a). (c) Intensity profiles of the white lines in (b). (d), (e) Location resolution estimation and corresponding histogram of blue box in (a). (f) Decorrelation analysis to evaluate resolution. The scale bars are 5 μm in (a) and 1 μm in (b).

    4. CONCLUSION

    In conclusion, nonlinear SIM employs the nonlinear fluorescence response of fluorescent probes to generate higher-order spatial frequency information. Theoretically, if these high-frequency components can be resolved, the spatial resolution of nonlinear SIM can be improved to an infinite degree. The advent of new reversibly photoswitchable fluorescent proteins has led to the emergence of nonlinear SIM techniques that require low excitation power. Nonetheless, the reconstruction of nonlinear SIM images presents a more formidable challenge in comparison to linear SIM. First, nonlinear SIM necessitates the acquisition of 25 to 63 raw images for the reconstruction of a super resolution image, thereby imposing a significant computational burden. Second, nonlinear SIM necessitates the use of a greater number of illumination angles, and the prediction of parameters is a more time-consuming process than in linear SIM. Third, the high-frequency components of nonlinear SIM are susceptible to noise interference, and the resulting computational artifacts are typically substantial, leading to a deterioration in image fidelity. Consequently, research in this field has made limited progress over time. The proposed JSFR-NL-SIM effectively addresses the aforementioned technical challenges encountered by nonlinear SIM and has been demonstrated to be the most rapid in the SIM field. A complete nonlinear SIM image reconstruction process can be controlled in the millisecond scale. It is noteworthy that the computing speed of the proposed discrete-Fourier-transform-based parameter prediction method is considerably faster than that of all current parameter prediction techniques, and it is also applicable to linear SIM.

    Our objective is to present a technique for real-time reconstruction of NL-SIM images and to promote the widespread use of NL-SIM in biomedical laboratories. JSFR-NL-SIM was extensively tested on the numerous data from open source BioSR datasets [36]. Rigorous spatial resolution criteria were also established and compared with other NL-SIM methods. The final image quality and resolution obtained by JSFR-NL-SIM are consistent with traditional NL-SIM, as verified by theoretical derivation and experimental results. JSFR-NL-SIM is readily compatible with various methods, including HiFi methods [6], Hessian denoising [4], and sparse deconvolution [5] to improve the final SR images. By integrating with the VIGOR framework proposed by Markwirth et al. [18], JSFR-NL-SIM has the potential to achieve real-time, multicolor observation with a larger field of view and reduce the latency between measurement and reconstructed image display. Additionally, by combining with the joint spectrum optimization strategy presented by Wen et al. [6,37], reconstruction artifacts in JSFR-NL-SIM can be further eliminated. Furthermore, JSFR-NL-SIM enables fast acquisition of SR images, which facilitates data acquisition. Moreover, JSFR-NL-SIM is expected to serve as the high-quality ground truth for training linear SIM in deep learning in the future [4043].

    However, the implementation of nonlinear SIM is constrained by the complexities associated with sample preparation and the inherent limitations of fluorescent probes. Consequently, the real-time nonlinear reconstruction experiments remain incomplete. As fluorescent dyes continue to evolve, we anticipate that JSFR will facilitate the future realization of real-time NL-SIM.

    Acknowledgment

    Acknowledgment. We acknowledge the valuable contribution made by our former team members, Dr. Zhaojun Wang and Dr. Xing Zhou, to JSFR-SIM.

    APPENDIX A: PRINCIPLE OF WIENER NL-SIM

    We will first discuss the classical Wiener NL-SIM algorithm, which is based on the traditional Wiener deconvolution. Next, we will extend the principle of the JSFR to nonlinear SIM and provide a detailed demonstration.

    The point spread function (PSF) of an incoherent imaging system describes the intensity response of the system to a point object. Therefore, the image of any object formed at the sensor plane can be expressed by the convolution between the emission intensity and the PSF of the system: Dd(r)=Em(r)H(r),where Dd(r) denotes the distribution of photons at the detector plane in direction d, H(r) indicates the PSF of the imaging system, Em(r) represents the intensity distribution emitted by the sample, and the symbol represents the convolution operation. In the linear SIM, the emission rate of samples is linearly proportional to the illumination intensity while this relationship is nonlinear in the NL-SIM, as Em(r) becomes Em(r)=F[I(r)]·S(r),where F[·] describes the nonlinear behavior of the sample in response to the illumination light. Consider the case of a one-dimensional sinusoidal illumination pattern; then the nonlinear response can be described as the following Fourier series with a maximal harmonic order of N: F[I(r)]=b0+b1cos(k·r+φ)+b2cos(2k·r+2φ)++bNcos(Nk·r+Nφ)=m=0Nbmcos(mk·r+mφ).

    The detected intensity distribution at the sensor plane can be described by the following equation: Dd(r)=Em(r)H(r)={F[I(r)]·S(r)}H(r)=[S(r)·m=0Nbmcos(mk·r+mφ)]H(r).

    After transforming the above equation into the frequency space, the spectrum of the raw image results in a weighted sum of an infinite number of components: D˜d(k)=[m=NNbmS˜(kmk0)eimφ]H˜(k),where D˜d(k), S˜(k), H˜(k) are the Fourier transform of Dd(r), S(r), H(r), respectively. Obviously, besides the m=1,0,1 terms in L-SIM, this equation contains many higher-order harmonics at integer multiples of the fundamental spatial frequency, from N to N. To separate these components, it requires 2N+1 raw images to be taken at different phases of the illumination pattern. Besides, the one-dimensional sinusoidal pattern needs to be rotated to obtain an isotropic enlarged spectrum in the frequency domain. As such, the image reconstruction of NL-SIM can be implemented in a similar way to L-SIM, which can be summarized as follows.

    Specifically, for the nonlinear SIM with patterned activation (PA NL-SIM), as N=2, b0=1, b±1=2/3, b±2=1/6, 25 raw images for five directions and each with five phases are required. Equation (A5) can be rewritten as D˜d(k)=[S˜(k)+23S˜(k±k0)eiφ+16S˜(k±2k0)ei2φ]H˜(k).

    In Eq. (A6), five phases are required to solve five unknown spectrum components. Therefore, we rewrite Eq. (A6) as the matrix form [D˜d,φ1(k)D˜d,φ2(k)D˜d,φ3(k)D˜d,φ4(k)D˜d,φ5(k)]=A[S˜(k)H˜(k)S˜(k+k0)H˜(k)S˜(kk0)H˜(k)S˜(k+2k0)H˜(k)S˜(k2k0)H˜(k)],where A=[m0m1eiφ1m1eiφ1m2ei2φ1m2ei2φ1m0m1eiφ2m1eiφ2m2ei2φ2m2ei2φ2m0m1eiφ3m1eiφ3m2ei2φ3m2ei2φ3m0m1eiφ4m1eiφ4m2ei2φ4m2ei2φ4m0m1eiφ5m1eiφ5m2ei2φ5m2ei2φ5]. Once the initial phases have been determined, we can invert the matrix A and obtain the spectrum components, which are given as [O0(k)O1(k)O+1(k)O2(k)O+2(k)]=[S˜(k)H˜(k)S˜(k+k0)H˜(k)S˜(kk0)H˜(k)S˜(k+2k0)H˜(k)S˜(k2k0)H˜(k)]=A1[D˜d,φ1(k)D˜d,φ2(k)D˜d,φ3(k)D˜d,φ4(k)D˜d,φ5(k)],where A1 is the inverse transform of the phase matrix A and O0(k),O±1(k),O±2(k) represent the 0th-order, ±1st-order, ±2nd-order spectra, respectively. Specifically, the relationship between the phases is φi=φ0+2π5i. After solving Eq. (A8), the separated spectrum is shifted to the correct position according to the wave vectors. Therefore, the directly combined spectrum without deconvolution can be obtained as follows: S˜directlycombined(k)=i=22Oi(k+ik0)H˜*(k+ik0).

    Consequently, the Wiener deconvolution is applied for the final spatial resolution improvement and OTF compensation, as Iwiener=S˜directlycombined(k)·Wwiener(k),Wwiener(k)=i=22H˜*(k+ik0)i=22|H˜*(k+ik0)|2+w2,where Wwiener is the Wiener filter and w is the empirical parameter.

    APPENDIX B: PRINCIPLE OF GENERAL JSFR

    Previously, we have developed a high-speed reconstruction workflow for L-SIM, termed JSFR-SIM, which reconstructs the SR image in the real space and suppresses the out-of-focus signal. In this section, we explore the basic theory of the SIM (L-SIM and NL-SIM) from a more general spatial perspective and extend the concept of the JSFR-SIM to the NL-SIM regime, avoiding the complex calculations of the Wiener-SIM procedures.

    According to Eq. (A4), the raw image acquired at the initial phase can be described as Di(r)=[S(r)·m=0Nbmcos(mk·r+mφ)]H(r).

    By shifting the excitation field with a lateral movement, the above equation can be revised as Di(r)={S(r)·m=0Nbmcos[mk0·(rri)+mφ0]}H(r),where ri represents the lateral shift of the field, i=0,1,2,,2N indicates the index of phase shifts, and N is the highest harmonic order (for example, N=1 for L-SIM). Without loss of generality, we will consider the structured light field in one dimension. As a result, the vector r can be replaced by the scalar x: Di(x)={S(x)·m=0Nbmcos[mω·(xxi)+mφ0]}H(x)=S(x)m=0Nbmcos[mω·(xxi)+mφ0]H(xx)dx,where we use ω to denote the fundamental frequency harmonic in one dimension.

    Assume that there exists ci(x)(i=1,2,3,4,5), which makes the reconstructed super resolution image the linear superposition of the structured light field, as shown in the following formula: ISR(x)=i=12N+1ci(x)Di(x)=S(x)m=0Nci(x)bmcos[mω·(xxi)+mφ0]H(xx)dx.

    Assume that the following relationship holds: ci(x)bmcos[mω·(xxi)+mφ0]=G(xx).

    Then we can obtain ISR(x)=S(x)m=0NG(xx)H(xx)dx=S(x)[G(x)H(x)]=S(x)P(x).

    The equivalent effective PSF is P(x)=G(x)H(x), which depends not only on the widefield PSF but also on the modulation function G(x). The modulation functions are typically represented by a mathematical equation m=0Nbmcos(mωx). By substituting the modulation function into Eq. (B6), we can obtain i=12N+1ci(x)Di(x)=S(x)[m=0Nci(x)bmcos(mωx)·H(x)].

    The FWHM of the effective PSF turns out to be about one third of the widefield PSF; the precondition for the establishment of Eq. (B7) can be simplified to i=12N+1ci(x)m=0Nbmcos[mω(xxi)+mφ0]=m=0Nbmcos[mω(xx)]=m=0Nbmcos[m(ωx+φ0)m(ωx+φ0)].

    By rewriting both sides of this equation as a function of cos[m(ωx+φ0)] and sin[m(ωx+φ0)], the above equation can be rewritten as m=0Nbm[i=12N+1ci(x)cos(mωxi)]cos[m(ωx+φ0)]+m=0Nbm[i=12N+1ci(x)sin(mωxi)]sin[m(ωx+φ0)]=cos[m(ωx+φ0)]cos[m(ωx+φ0)]+m=0Nsin[m(ωx+φ0)]sin[m(ωx+φ0)].

    According to the orthogonality of cos[m(ωx+φ0)] and sin[m(ωx+φ0)], ci(x) must satisfy the following relations; if we want the above formula to be always true for any x and x″, the following equations must be valid: i=12N+1ci(x)cos(mωxi)=1bmcos[m(ωx+φ0)],i=12N+1ci(x)sin(mωxi)=1bmsin[m(ωx+φ0)].

    Assuming the phase shift to be ωxi{0,Δφ1,Δφ2,,Δφ2N}, then the above relations can be rewritten as follows: [11111cosΔφ1cosΔφ2cosΔφn0sinΔφ1sinΔφ2sinΔφn1cosNΔφ1cosNΔφ2cosNΔφn0sinNΔφ1sinNΔφ2sinNΔφn][c1(x)c2(x)c3(x)c2N(x)c2N+1(x)]=[1b01b1cos(ωx+φ0)1b1sin(ωx+φ0)1bNcos[N(ωx+φ0)]1bNsin[N(ωx+φ0)]].

    Let S=[11111cosΔφ1cosΔφ2cosΔφn0sinΔφ1sinΔφ2sinΔφn1cosNΔφ1cosNΔφ2cosNΔφn0sinNΔφ1sinNΔφ2sinNΔφn].We can always get ci(x)(i=1,2,,2N+1) with the following formulae, as long as the above matrix S is full rank: [c1(x)c2(x)c3(x)c2N(x)c2N+1(x)]=S1[1b01b1cos(ωx+φ0)1b1sin(ωx+φ0)1bNcos[N(ωx+φ0)]1bNsin[N(ωx+φ0)]].

    The above formulae are the general expressions of ci(x)(i=1,2,,2N+1).

    Similar to the L-SIM case, ci(x) is fully determined by the illumination parameters, and the intermediate image can be obtained by summing up the coefficient functions with the detected raw images in all directions, as follows: ISR(x)=i=12N+1ci(x)Di(x).

    Consequently, the Wiener filter, which is consistent with Wiener-NL-SIM, is applied to the final process for further resolution improvement and artifact reduction: ISR-final(x)=F1{F{ISR(x)}·W(k)}.

    Various methods can be used to determine the illumination parameters, including the initial phase, pattern frequency, and modulation depth. In Fig. 7, we utilize the proposed DFT-based algorithm to estimate the illumination parameter. Once the illumination parameters are determined, the coefficients can be precalculated and reused for consecutive reconstructions, greatly reducing the computing burden. Also, by utilizing a notch filter, termed Mask(k), which has a value of zero within regions of a radius of 3 pixels at kex and 2kex, and a value of one in all other regions, the quality of the preliminary SR images can be improved to produce the ultimate high-fidelity SR images. Figure 7 shows the F-actin filaments reconstruction results, which demonstrates the reliability of the JSFR reconstruction. Furthermore, an investigation was conducted to access the structure similarity index measure (SSIM) difference among HiFi-NL-SIM, JSFR-NL-SIM, and GT-SIM-a (Wiener-NL-SIM). Since the HiFi-NL-SIM algorithm has demonstrated its ability to reconstruct super resolution images of linear SIM as well as nonlinear SIM with high fidelity and high robustness, accordingly, the HiFi-NL-SIM is employed as a reference for the calculation of the SSIM. The specific results are shown in Fig. 7, which demonstrates that HiFi-NL-SIM and JSFR-NL-SIM are effective in suppressing the artifacts and enhancing the image quality. Furthermore, the SSIM values of JSFR-NL-SIM are distributed within the range of 0.92–0.95, indicating a high overall similarity.

    Structure similarity index measure difference among three algorithms. (a)–(c) SR images reconstructed by HiFi-NL-SIM, JSFR-NL-SIM, and GT-SIM-a (Wiener-NL-SIM). (d) Enlarged images of different colored boxes from (a). The numbers at the upper-left corner in the insets of (b)–(d) indicate the structural similarity of the current image, compared with the original HiFi-NL-SIM image.

    Figure 7.Structure similarity index measure difference among three algorithms. (a)–(c) SR images reconstructed by HiFi-NL-SIM, JSFR-NL-SIM, and GT-SIM-a (Wiener-NL-SIM). (d) Enlarged images of different colored boxes from (a). The numbers at the upper-left corner in the insets of (b)–(d) indicate the structural similarity of the current image, compared with the original HiFi-NL-SIM image.

    Comparison of workflow of HiFi-NL-SIM and JSFR-NL-SIM. The preliminary preprocessing of both methods is similar. (a) The workflow of HiFi-NL-SIM and (b) the workflow of JSFR-NL-SIM.

    Figure 8.Comparison of workflow of HiFi-NL-SIM and JSFR-NL-SIM. The preliminary preprocessing of both methods is similar. (a) The workflow of HiFi-NL-SIM and (b) the workflow of JSFR-NL-SIM.

    APPENDIX C: PRELIMINARY WORKFLOW OF JSFR-NL-SIM

    It should be noted that Eq. (B15) still presents several issues regarding image quality. (1) Conventional parameter estimation may fail due to the low SNR. (2) Wiener-NL-SIM cannot eliminate the out-of-focus fluorescent signal and high-frequency noise. (3) Sidelobe artifacts may occur due to the abnormal features of OTF. (4) Richardson-Lucy deconvolution (RL deconvolution), which is used to increase the resolution, results in decreased reconstruction speed.

    To solve these problems, we first deduced the classical parameter estimation in NL-SIM, including the wave vector, initial phases, and modulation depths. Equation (A8) shows that by dividing O0(k) and O+1(k) with the OTF, we can obtain the object information modulated by the initial phases and modulation depths: O0=O0·H*(k)|H(k)|2=S˜(k),O+1=O+1·H*(k+k)|H(k+k)|2=m1S˜(k+k)eiφ0,O+2=O+2·H*(k+2k)|H(k+2k)|2=m2S˜(k+2k)ei2φ0,where k is the estimated wave vector. The separated and OTF-corrected bands have the overlapping regions resulting in a high correlation, as follows: CC(k)=(O0O1)(k)=m1S˜(k)S˜(k+k)eiφ0.

    Equation (C2) will achieve its maximum when k=k0, where k0 is the ideal wave vector. This can be found through an iteration search using the Fourier shift theorem. Specifically, in NL-SIM, the first higher-order spectrum peak (1HOH) is relatively lower compared to the first-order spectrum (1OH). As a result, the correlation peak between 1OH and 1HOH is not discernible. Therefore, we calculate the correlation peak between the zeroth-order spectrum and first-order spectrum to determine the wave vector. Furthermore, we employ an attenuation function to reduce the redundant spectrum and enhance the detection of wave vectors. Richardson-Lucy deconvolution also contributes to enhancing the peak, but this procedure can be replaced by the Wiener-type function calculated in advance to speed up the parameter estimation process.

    After determining the wave vectors, the modulation depths and initial phase can be calculated as follows: φ0=angle[m1S˜(k)S˜(k+k)eiφ0|S˜(k)|2],m1=|m1S˜(k)S˜(k+k)eiφ0|S˜(k)|2|,m2=|m1S˜(k+k)S˜(k+2k)ei2φ0|S˜(k+k)|2|.

    In the main text, we mentioned that the disadvantage of the classical method is relatively slow speed. Therefore, by utilizing the DFT-based parameters estimation algorithm, the execution speed of the parameter estimation can be significantly increased.

    However, the modulation depth of the higher-order harmonics m2 calculated by Eq. (C4) is always unreliable, and we need to preset m2 before the final reconstruction. In the JSFR-NL-SIM, we always set it as 0.160.35.

    During the reconstruction step, an attenuation function is applied to the raw images to eliminate the out-of-focus signal. As we have demonstrated, RL deconvolution with the limited iteration times enhances high-frequency information, but at the cost of time. Furthermore, passing through a passband filter greatly suppresses this enhancement, providing no additional spectral information compared to the Wiener-type filter. To address this, we combined an attenuation function with a Wiener-type filter for the out-of-focus signal suppression and acceleration as a pre-processing step as G˜(k)=H*(k)|H(k)|2+wp2·a(k)H*(k).

    Finally, in the classical Wiener-NL-SIM, the Wiener filter consists of the equivalent OTF of the SR image, which exhibits the strong convex peak, not only in the center of the filter but also in the high-order spectrum. Eventually, the final spectrum of the SR image exhibits the same shape as the Wiener filter, which results in various artifacts, such as honeycomb artifacts causing sharp residual out-of-focus signal, which enhances the out-of-focus signal and noise. Therefore, we adopt the optimization functions to eliminate the abnormal features of OTF and artifacts. First, we correct the abnormal spectrum by adopting the W1, as follows: W1(k)=H*(kd)d=1Ndir[1ad(kd)]|H*(kd)|2+w12,where w1 is the parameter of the W1. This optimization filter applies the notch filter with different attenuation strengths to correct the abnormal spectrum challenged by Wwiener in Eq. (A10). Second, we adopt the W2 to retain the weak information and continuously approach the ideal spectrum, as follows: W2(k)=Apod=1Ndir[1ad(kd)]|H*(kd)|2+w22,where Apo is the apodization function in the frequency domain, and w2 is the parameter of the W2. The W2 has the similar form as the W1 but with a relatively smaller w2. That is because some weak information is eliminated by adopting the W1. Therefore, we adapt the W2 to compensate for weak information. Moreover, by exploiting the apodization function, artifacts generated by the high-frequency noise can be suppressed.

    These optimization functions are only related to the illumination parameters and can be calculated in advance. For convenience, we integrate these two functions into a single one: W(k)=W1(k)W2(k),where W1(k) is designed to correct the abnormalities of reconstructed spectrum and W2(k) is employed to recover the high-frequency information spectrum.

    In the JSFR-NL-SIM, the two optimization filters are adjusted by setting w1 and w2. W1 is designed to suppress artifacts and adjust the equivalent OTF to an ideal form, whereas W2 is designed to recover high-frequency details while suppressing noise. When the larger w1 is set, the capacity for the attenuation of high-frequency noise across all spectra and the diminution of sidelobe artifacts will be augmented. However, this is achieved at the expense of the suppression of genuine high-frequency information, which results in the loss of subtle details within structures. A reduction in the w2 results in an amplification of high-frequency signals, which serves to enhance the visibility of weak signals and increase the image sharpness. It is recommended that, in the event of an image exhibiting a low signal-to-noise ratio, the value of w1 is increased in order to suppress noise and artifacts. Conversely, if the signal-to-noise ratio of the image is satisfactory, w2 can be reduced in order to amplify high-frequency information. Generally, we set w1=0.5 and w2=0.1 to achieve a balance between the artifact suppression and the retention of the weak signal. A comprehensive examination of the BioSR was conducted, and the resulting images filtered by two optimizations filters are of exceptional quality. It is not necessary to make any adjustments to w1 and w2 during the test, thus ensuring the convenience of the JSFR-NL-SIM.

    APPENDIX D: DEMONSTRATION OF THE RELATIONSHIP OF THE RECONSTRUCTION ALGORITHM IN REAL SPACE AND THE CONVENTIONAL RECONSTRUCTION APPROACH IN FOURIER DOMAIN

    In this section, we will use the PA NL-SIM as an example to illustrate the unity of reconstruction in both spatial and frequency domains. Specifically, we denote the phase-shifting elements in the Eq. (B11) matrix as Cp,q(p=1,2,,5;q=1,2,,5); thus the equation can be written as [c1(x)c2(x)c3(x)c2N(x)c2N+1(x)]=[C1,1C1,2C1,3C1,4C1,5C2,1C2,2C2,3C2,4C2,5C3,1C3,2C3,3C3,4C3,5C4,1C4,2C4,3C4,4C4,5C5,1C5,2C5,3C5,4C5,5][1b01b1cos(ωx+φ0)1b1cos(ωx+φ0)1bNcos[N(ωx+φ0)]1bNcos[N(ωx+φ0)]],where the coefficient matrix can be expressed as [C1,1C1,2C1,3C1,4C1,5C2,1C2,2C2,3C2,4C2,5C3,1C3,2C3,3C3,4C3,5C4,1C4,2C4,3C4,4C4,5C5,1C5,2C5,3C5,4C5,5]=[11111cosΔφ1cosΔφ2cosΔφn0sinΔφ1sinΔφ2sinΔφn1cosNΔφ1cosNΔφ2cosNΔφn0sinNΔφ1sinNΔφ2sinNΔφn]1.

    On this basis, Eq. (B14) can be written as the following equation: ISR(x)=i=15ci(x)Di(x)=1b0[C1,1D1(x)+C2,1D2(x)+C3,1D3(x)+C4,1D4(x)+C5,1D5(x)]+1b1[C1,2D1(x)+C2,2D2(x)+C3,2D3(x)+C4,2D4(x)+C5,2D5(x)]cos(ωx+φ0)+1b1[C1,3D1(x)+C2,3D2(x)+C3,3D3(x)+C4,3D4(x)+C5,3D5(x)]sin(ωx+φ0)+1b2[C1,4D1(x)+C2,4D2(x)+C3,4D3(x)+C4,4D4(x)+C5,4D5(x)]cos[2(ωx+φ0)]+1b2[C1,5D1(x)+C2,5D2(x)+C3,5D3(x)+C4,5D4(x)+C5,5D5(x)]sin[2(ωx+φ0)].

    For convenience, we introduce the intermediate images Ri(x)(i=1,2,,5) to rewrite the formula. As a result, the super resolution image can be represented as a linear combination of the intermediate images, which are completely determined by the illumination parameters. The intermediate images are shown below: R0=1b0[C1,1D1(x)+C2,1D2(x)+C3,1D3(x)+C4,1D4(x)+C5,1D5(x)],R1=1b1[C1,2D1(x)+C2,2D2(x)+C3,2D3(x)+C4,2D4(x)+C5,2D5(x)],R2=1b1[C1,3D1(x)+C2,3D2(x)+C3,3D3(x)+C4,3D4(x)+C5,3D5(x)],R3=1b2[C1,4D1(x)+C2,4D2(x)+C3,4D3(x)+C4,4D4(x)+C5,4D5(x)],R4=1b2[C1,5D1(x)+C2,5D2(x)+C3,5D3(x)+C4,5D4(x)+C5,5D5(x)].And the super resolution image can be written as follows: ISR(x)=R0(x)+R1(x)cos(ωx+φ0)+R2(x)sin(ωx+φ0)+R3(x)cos[2(ωx+φ0)]+R4sin[2(ωx+φ0)].

    By substituting Eq. (B13) into Eq. (B15) and writing as the convolution form, we can obtain the following equations: R0(x)=O(x)H(x)=S˜0(k),R1(x)=[O(x)·cos(ωx+φ0)]H(x),R2(x)=[O(x)·sin(ωx+φ0)]H(x),R3(x)=[O(x)·cos2(ωx+φ0)]H(x),R4(x)=[O(x)·sin2(ωx+φ0)]H(x).

    Subsequently, we can further derive the intermediate images as follows: R1(x)=[O(x)·cos(ωx+φ0)]H(x)=[O(x)·ei(ωx+φ0)+ei(ωx+φ0)2]H(x)=eiφ02F1[O˜(kω)·H˜(k)]eiφ02F1[O˜(k+ω)·H˜(k)],R2(x)=[O(x)·sin(ωx+φ0)]H(x)=[O(x)·ei(ωx+φ0)ei(ωx+φ0)2i]H(x)=eiφ02iF1[O˜(kω)·H˜(k)]eiφ02iF1[O˜(k+ω)·H˜(k)],R3(x)=[O(x)·cos2(ωx+φ0)]H(x)=[O(x)·e2i(ωx+φ0)+e2i(ωx+φ0)2]H(x)=e2iφ02F1[O˜(k2ω)·H˜(k)]e2iφ02F1[O˜(k+2ω)·H˜(k)],R4(x)=[O(x)·sin2(ωx+φ0)]H(x)=[O(x)·e2i(ωx+φ0)e2i(ωx+φ0)2i]H(x)=e2iφ02iF1[O˜(k2ω)·H˜(k)]e2iφ02iF1[O˜(k+2ω)·H˜(k)].

    Therefore, the high-order spectrum information thus can be obtained: O˜(kω)·H˜(k)=eiφ0F[R1(x)+iR2(x)],O˜(k+ω)·H˜(k)=eiφ0F[R1(x)iR2(x)],O˜(k2ω)·H˜(k)=e2iφ0F[R3(x)+iR4(x)],O˜(k+2ω)·H˜(k)=e2iφ0F[R3(x)iR4(x)].

    Subsequently, shifting the high-order spectrum to their original position, the first-order and the second-order spectra can be expressed as follows: S˜1(k)=O˜(k)·H˜(kω)=F{F1[O˜(k+ω)·H˜(k)]eiωx}=F{F1{eiφ0F[R1(x)iR2(x)]}eiωx}=F{[R1(x)iR2(x)]ei(ωx+φ0)},S˜+1(k)=O˜(k)·H˜(k+ω)=F{F1[O˜(kω)·H˜(k)]eiωx}=F{F1{eiφ0F[R1(x)+iR2(x)]}eiωx}=F{[R1(x)+iR2(x)]ei(ωx+φ0)},S˜2(k)=O˜(k)·H˜(k2ω)=F{F1[O˜(k+2ω)·H˜(k)]e2iωx}=F{F1{e2iφ0F[R3(x)iR4(x)]}e2iωx}=F{[R3(x)iR4(x)]e2i(ωx+φ0)},S˜+2(k)=O˜(k)·H˜(k+2ω)=F{F1[O˜(k2ω)·H˜(k)]e2iωx}=F{F1{e2iφ0F[R1(x)+iR2(x)]}e2iωx}=F{[R3(x)+iR5(x)]e2i(ωx+φ0)}.

    Finally, by combining the above high-order spectrum information together and transforming into the spatial domain, the super resolution image can be obtained: ISR(x)=F1[S˜0(k)+S˜±1(k)+S˜±2(k)]=F1[O(k)·H(k)+O˜(k)·H˜(k±ω)+O˜(k)·H˜(2k±ω)]=F1{F[R0(x)]+12F[R1(x)±iR2(x)]ei(ωx+φ0)+12F[R3(x)±iR4(x)]e2i(ωx+φ0)}=R0(x)+R1(x)cos(ωx+φ0)+R2(x)sin(ωx+φ0)+R3(x)cos[2(ωx+φ0)]+R4sin[2(ωx+φ0)].

    APPENDIX E: COMPARISON CLASSICAL WIENER-NL-SIM, HiFi-NL-SIM, AND JSFR-NL-SIM

    As we have demonstrated in the main text, both the JSFR-NL-SIM and HiFi-NL-SIM can produce the high-fidelity SR image; the difference is that the JSFR-NL-SIM is significantly faster. With both using the DFT-based parameters estimation algorithm proposed in this paper, the execution time of the detailed steps in the reconstruction is given in Fig. 8. Without loss of generality, we also give the comparison flowchart of the classical Wiener-NL-SIM with HiFi-NL-SIM and JSFR-NL-SIM (Fig. 9). We also compare the reconstruction time of the three algorithms at different pixels in CPU and GPU environments (Fig. 10).

    Comparison of the workflow of the Wiener-NL-SIM, HiFi-NL-SIM, and JSFR-NL-SIM. (a) Workflow of the Wiener-NL-SIM. (b) Workflow of the HiFi-NL-SIM. (c) Workflow of the JSFR-NL-SIM.

    Figure 9.Comparison of the workflow of the Wiener-NL-SIM, HiFi-NL-SIM, and JSFR-NL-SIM. (a) Workflow of the Wiener-NL-SIM. (b) Workflow of the HiFi-NL-SIM. (c) Workflow of the JSFR-NL-SIM.

    Execution time of the JSFR-NL-SIM, Wiener-NL-SIM, and HiFi-NL-SIM in both CPU and GPU environments. (a) Execution time of the three algorithms in the CPU environment. (b) Execution time of the three algorithms in the GPU environment. (c) Exact execution time of the three algorithms.

    Figure 10.Execution time of the JSFR-NL-SIM, Wiener-NL-SIM, and HiFi-NL-SIM in both CPU and GPU environments. (a) Execution time of the three algorithms in the CPU environment. (b) Execution time of the three algorithms in the GPU environment. (c) Exact execution time of the three algorithms.

    APPENDIX F: DEMONSTRATION OF THE ROBUSTNESS AND PERFORMANCE OF THE DFT-BASED RAPID ILLUMINATION PARAMETERS ESTIMATION ALGORITHM

    We first validate the robustness of the DFT algorithm in estimating the wave vector. Figure 11 shows the performance of the classical COR algorithm and DFT algorithm under the different noise levels. The experimental data are adopted as a benchmark, without any added noise, and then stepwise increasing Gaussian noise is added to it. The methodology involves testing the methods 50 times at each noise level. The experimental results demonstrated that both COR and DFT achieve satisfactory results when the noise level is within the 50 dBW range. Nevertheless, DFT exhibits superior robustness and a lower average error. In the case of nonlinear SIM, DFT employs the same phase estimation method as COR. This is due to the fact that the correlation-based parameter estimation method has a wide range of applicability and has been successfully applied to numerous biological samples. Furthermore, the robustness of correlation-based parameter estimation has been well proven. Provided that the wave vectors can be correctly estimated, it seems reasonable to suggest that the estimation of the phase can achieve a similar level of robustness to that observed in COR. Second, in terms of performance, the results demonstrate that the DFT algorithm is capable of estimating the illumination parameters for all directions in 50 ms for the nonlinear SIM with 25 raw images containing five directions (released on GitHub, GPU 4070ti). The comprehensive results with different pixel sizes are shown in Table 2.

    Wave vector errors of classical COR algorithm and DFT algorithm.

    Figure 11.Wave vector errors of classical COR algorithm and DFT algorithm.

    DFT Algorithm Provides a Significantly Improved Illumination Parameters Estimation Speed of All Image Sizes in GPU Environment for NL-SIM

    Input Image Size (Pixel)Execution Time of the DFT Algorithm (ms)Execution Time of the COR Algorithm (ms)
    512×51249.87±1.5111.8±4.9
    1024×1024118.6±4.7213.5±6.8

    Furthermore, the DFT algorithm can be applied to linear SIM. In order to validate the performance of the DFT algorithm in the linear SIM, the code published on GitHub is utilized, with only the image parameters undergoing modification. The publicly available dataset from BioSR, comprising an image of 512 pixels, is employed for testing, with the computation time recorded 50 times to obtain the average. The average time obtained is 30 ms. The code provided by PCA is downloaded and a speed test is conducted on the same images in the same environment. The results demonstrated an average time of 33 ms. For the purpose of comparison, the average execution time of COR is determined to be 69 ms. For images with 1024 pixels, the computation time for DFT is 76 ms, while that for PCA is 77 ms. It is reasonable to posit that the execution speed of DFT reaches a similar order of magnitude to that of PCA (Table 3).

    Comparison of the Execution Time of the Linear SIM Reconstruction Procedure by DFT, PCA, and COR

    Input Image Size (Pixel)Execution Time of the DFT Algorithm (ms)Execution Time of the PCA Algorithm (ms)Execution Time of the COR Algorithm (ms)
    512×51230.04±1.333.01±1.368.67±2.0
    1024×102476.32±2.277.31±2.1124.1±4.1

    [34] S. Labouesse. Imagerie à éclairements structurés inconnues(2017).

    Tools

    Get Citation

    Copy Citation Text

    Jingxiang Zhang, Tianyu Zhao, Xiangda Fu, Manming Shu, Jiajing Yan, Mengrui Wang, Yansheng Liang, Shaowei Wang, Ming Lei, "High-speed image reconstruction for nonlinear structured illumination microscopy," Photonics Res. 13, 743 (2025)

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Imaging Systems, Microscopy, and Displays

    Received: Aug. 28, 2024

    Accepted: Dec. 20, 2024

    Published Online: Mar. 3, 2025

    The Author Email: Ming Lei (ming.lei@mail.xjtu.edu.cn)

    DOI:10.1364/PRJ.540671

    Topics