
- Photonics Research
- Vol. 12, Issue 6, 1313 (2024)
Abstract
1. INTRODUCTION
Microscopy is vital in biology [1–3], medicine [4,5], material science [6–8], and chip manufacturing [9,10]. Due to the diffraction limit, traditional optical microscopy can achieve the highest resolution of around 200–350 nm under visible light illumination (wavelength of around 400–700 nm) [11–14]. The objectives for high-resolution microscopic imaging usually have a classical numerical aperture (NA) value near 1.0. As we all know, the objective working distance decreases with increasing NA. The objectives’ working distance is usually smaller than 0.2 mm to achieve a high NA. The short working distance and large magnification usually lead to micrometer or even nanometer depth of field (DOF) in objective. Such a small DOF makes it challenging for traditional microscopy to focus fast on sections [15,16].
Computational microscopy is currently preferred to improve resolution and break the diffraction limits of traditional microscopy [17,18]. Heavy optical modulations and iterative computations are combined necessary to acquire a super-resolution reconstruction. Especially, single-pixel imaging (SPI), as a computational imaging method, usually reconstructs images with many pattern modulations.
Currently there are two main methods to solve the autofocus problem: active focus and passive focus [28–30]. The active methods, namely measuring distance, employ infrared, ultrasonic, and laser sources for autofocus [31,32]. The sensors are necessary for active methods to measure infrared light intensity or propagation time from reflected signals. The active methods cannot be compact and are usually unavailable when the target is transparent. The passive methods include phase detection and contrast maximization [33,34]. The depth from focus and depth from defocus are two classical approaches. These passive autofocus methods, with the help of a focus search algorithm, usually are time-consuming to find a focus position. Moreover, the focus precision is limited by the acquired image resolution. A high-resolution image is necessary to judge the accurate focus position.
Sign up for Photonics Research TOC. Get the latest issue of Photonics Research delivered right to you!Sign up now
The traditional passive autofocus methods show low precision when used in the low-resolution SPI. A dual modulation method is proposed to solve the SPI defocus phenomenon [35]. The dual modulation means that a grating is added in SPI optics paths to modulate the target. Theoretically, the grating should be the conjugation plane of the spatial light modulator (SLM). The co-axial and off-axial configurations were designed for dual modulation. However, the dual modulation method has not been validated in single-pixel microscopic imaging (SPMI) autofocus. In the SPMI system, co-axial configurations are unavailable when switching different magnification objectives. Due to the objective’s short DOF and working distance, it is challenging for off-axial configurations to adjust the grating and SLM to be appropriate conjugation positions. Therefore, to achieve ideal and flexible autofocus in SPMI, a superior method compatible with various magnification objectives is pressing [36]. In addition, the defocus extent of traditional SPMI is only limited by the projection lens. However, if a dual modulation configuration is used for SPMI refocusing, the lens that images the target to the grating brings an additional uncertain factor that causes the reconstructed image to defocus. As a systematic error, this vital uncertain factor exists along with the dual modulation. The introduction of grating in the optics paths also interferes with SPMI and inevitably leads to poor image quality. Therefore, research on the grating-free modulation autofocus method is necessary.
This paper proposes a grating-free method to achieve SPMI’s focus by maximizing high-frequency information. Only the PD-measured time sequential signals are needed to determine whether the optical system is in focus. First, we will demonstrate that this method is derived from the physical mechanism of optical defocusing. Then, the experiments for fast focusing on the sample with different NA objective lenses will be carried out. The Fourier spectra are employed as an example to demonstrate the availability of the proposed method. Further, the Hadamard spectra are also effective for the grating-free method. Finally, our method will be validated for biological samples in addition to the binary sample. In the following, the autofocus experiments under the grating modulation and grating-free method will both be implemented. We will also discuss the autofocus robustness when the system is out of focus and objectives magnification varies.
2. METHOD
A. Physics Model
In the digital image process, we often need convolution to smooth the target image and detect edges. In optics, convolution can also describe the out-of-focus extent (known as the photographic term “bokeh”) after lens function modulation. SPI patterns will convolute with the point spread function (PSF) in the space-invariant system when passing the objective. After the convolution process, we can obtain a blur image from an ideal on-axis point source. The PSF is the convolution kernel mathematically approximated with a 2D Gaussian profile:
(
When the image is convoluted by the PSF,
Considering the space-invariant incoherent system, the image intensity distribution is
Figure 1.(a) Physical mechanism of SPMI’s defocus. Numerical simulations of PSF and corresponding OTF with
To demonstrate the proposed grating-free autofocus method, we have set up two microscopy light paths, one with dual modulation and the other without grating modulation. As shown in Figs. 1(c) and 1(d), the patterns for traditional SPI are generated by the DLP. The light screen is a ground glass located at the focal plane of the DLP. The optical modulation patterns are imaged on the sample plane by Objective 1. The USAF-1951 card is used as the target. The key difference between dual modulation and grating-free modulation lies in the utilization of Objective 2 and a grating.
B. Theoretical Error Analysis
In the dual modulation optical path, Objective 1 is typically initially defocused. The objective is to adjust the position of Objective 1 to ensure that the modulation patterns focus accurately on the target. The defocusing of Objective 1 can be mathematically represented as a convolution operator. Therefore, the original extent of defocus of the patterns is
Subsequently, the defocused patterns
Objective 2 still defocuses even after being focused by the naked eye. Consequently, the patterns will be blurred by Objective 2, and can be mathematically described as
The PD is used to measure intensity signals transmitted from the grating. The signals have mathematical form as
From the above equation, the reconstructed image is given by
However, regulating the PSF of the system to an ideal
In Fig. 1(d), Objective 2 and the grating are removed, and the optical system is simplified. The PD measured signals are as follows:
In this optical system, there is no concern whether Objective 2 is out of focus.
3. RESULTS
A. Dual Modulation SPMI Experiments
The autofocus experiments for SPMI will be done using dual and grating-free modulations to demonstrate the advantage of the grating-free method. The experimental setups are in Appendix A. The detailed procedures are shown in Fig. 2. In the following experiments, Objective 1 (
Figure 2.Experimental comparison of the two autofocus methods for SPMI. FSPS, four-step phase-shifting. The frequency coefficient for autofocus is measured with PD signals after four-step phase-shifting patterns modulation. (a) The procedure of dual modulation autofocus. The grating frequency calibration is necessary for determining which patterns to modulate the target. (b) The procedure of grating-free modulation autofocus. The arbitrary high-frequency patterns are theoretically feasible for grating-free SPMI autofocus.
In the dual modulation method, an extra calibration is done to acquire the grating frequency. The coordinate of the grating Fourier coefficient is a local maximum value that is easy to distinguish. As shown in Fig. 2(a), the highlighted coordinate
B. Grating-Free Modulation SPMI Experiments
In the grating-free modulation, arbitrary high-frequency Fourier coefficients can be employed to replace previous extra-grating modulation. As we all know, noises are inevitable during SPMI experiments, and the high-frequency energy is generally weak. The high-frequency coefficients with small amplitude usually have poor PSNR. Therefore, the local maximum coefficients are preferred in the high-frequency domain to improve the focus accuracy. To verify the generality and universality of the grating-free method, the high-frequency coefficient is chosen as the eigenvalue that is to be maximized. After projecting patterns and shifting the objective, the accurate focus position is quickly captured according to the highest response value. In Fig. 2(b), the red circle highlights the focus position [amplitude is 0.29, frequency coordinate is (16,16)] under the grating-free method. The frame rate of SPMI patterns is 22.7 kHz. When the objective lens is moved, we just need to judge whether the measured eigenvalue amplitude from PD signals is equal to 0.29. The time for estimating the objective’s immediate in-focus extent is less than 180 μs under four-step phase-shifting patterns illumination. Then, the objective is moved to the position with a measured response amplitude of 0.29. In Fig. 2(b), the amplitudes of high-frequency coefficients are enhanced compared with that in initial out-of-focus spectra. Finally, the out-of-focus existing in the SPMI system is removed, and the reconstruction is deblurred without grating interference.
C. Comparison of Compatibility
The wide field and high resolution are usually incompatible in SPMI. The reconstructed images under different magnification microscopic imaging are in demand. To satisfy the requirement of autofocus under these flexible scenarios, we will validate the autofocus behavior with dual modulation and grating-free methods. In the following, the autofocus experiments with switching different NA objective lenses will be demonstrated. The USAF-1951 card is used as the target. The objective lenses with
Figure 3.SPMI experiments with
In contrast, the SPMI system focuses on the target, and there is no grating interference in Fig. 3(b), which is acquired by the grating-free autofocus method. Further, the measured spectra demonstrated that the high-frequency components are restored. In addition, dual modulation is not an interference-free method due to the conjugate constraint between the grating and the SLM. Once the Objective 1 magnification changes, all other optics devices must be adjusted correspondingly. However, the grating-free method frees this constraint.
D. Complex Information Scenarios Experiments
The focus target of the above experiments is USAF-1951, which has a simple image character. The biological samples have the character of natural and common Fourier spectrum. The robust SPMI autofocus method should be highly effective with biological samples. Here, to validate the SPMI autofocus ability for the pathology section, the samples of cervical polyp and esophageal cancer are used in our experiments. The autofocus results are in Fig. 4. First, the out-of-focus reconstructed images of biological samples are easy to acquire when SPMI experimental setups are done. Unfortunately, the main high-frequency energies are lost in the measured out-of-focus Fourier spectra. The residual high-frequency coefficients with local maximum energy are chosen as eigenvalues, which are available to derive the four-step phase-shifting modulation patterns. Next, moving the Objective 1, the PD response signals are recorded simultaneously according to the modulation patterns. The coefficient amplitudes can be acquired using a four-step phase-shifting algorithm to process PD signals. In the last row of Fig. 4, the blue rectangular areas highlight the corresponding in-focus position in the process of measuring high-frequency coefficient amplitudes.
Figure 4.Experimental results for dual modulation and grating-free method. Objective,
4. DISCUSSION
In the above experiments, the high-frequency eigenvalue maximum has been validated for efficient and fast SPMI deblurring. The blurred image is usually along with high-frequency information damage when the SPMI optics system is out of focus. The grating-free autofocus method in this paper is to acquire authentic target Fourier spectra by enhancing high-frequency information. However, the traditional dual modulation autofocus method has to impose an obvious one-order interference to the actual Fourier spectra with grating modulation. Even if SPMI is focused with this method, the primary target Fourier spectra are damaged, and a grating interference always exists in the reconstructed image. The idea in our method is derived from the convolution property and optical transfer model. The out-of-focus phenomenon that exists in SPMI imaging can be seen as the convolution process between the PSF and the target. The PSF is transformed into an OTF. The out-of-focus imaging process that PSF convolutes the target, is equal to that OTF multiplies the target’s Fourier spectra. In the out-of-focus imaging, OTF is similar to a low-pass filter. Thereby, the PD-measured high-frequency components are decreased in SPMI. Benefiting from this phenomenon, this paper aims to restore the initial high-frequency amplitude and achieve autofocus in the SPMI process. Different from the traditional pinhole imaging model, SPI has the nature of directly measuring target Fourier spectra. Thereby, the focus process is quickly done just by PD-measured voltage values, and no postprocess is needed. This method needs just a high-frequency amplitude, so the sensitivity to the objective lens’ defocusing is high. Conversely, if multiple frequency point energies are measured in combination to determine focus, the focus sensitivity of the method is sacrificed.
Benefiting from the SPI’s capacity of directly measuring Fourier spectra, the proposed method demonstrates greater advantages compared to the classical methods. In Fig. 5, the classical contrast maximization method and the proposed method are compared with flow block diagrams. The primary obstacle for employing the classical passive method to SPMI is to acquire multiple captured high-resolution frames, as shown in Fig. 5(a). Unlike traditional cameras, SPI uses huge Fourier basis patterns to modulate objects sequentially. The SPI time consumption for capturing multiple high-resolution frames is not ignored, which severely constrains the autofocus time response. However, in Fig. 5(b), only the amplitudes of a high frequency in the Fourier spectrum are enough for SPMI’s autofocus. The amplitudes are recorded by the PD when shifting the objective lens. Only a four-step phase-shift operation is needed, and the focus plane is found.
Figure 5.Comparison of (a) the contrast maximization method and (b) this method.
In the proposed SPMI autofocus method, the resolution requirement for the modulation patterns is that their highest spatial frequency must satisfy the need to measure the detailed features of the target. At this time, the autofocus accuracy of our method is unaffected by the modulation patterns’ resolution. When the highest spatial frequency of the modulation patterns does not satisfy the need to measure the detailed features of the target, the autofocus accuracy of our method is limited by the patterns’ resolution. At this point, the autofocus accuracy of our method is proportional to the resolution of the modulation patterns. Though the proposed grating-free autofocus method is effective and precise in SPMI, the autofocus speed is currently limited by the mechanical response of shifting the objective lens. For future optimization, one could consider designing a liquid lens instead of shifting objective lens mechanically in SPMI’s autofocus. Our grating-free autofocus speed could potentially be further enhanced if used in conjunction with three-step or two-step phase-shift algorithms. It is also possible to achieve invisible light autofocus by maximizing the Fourier coefficient without imaging. In addition, combined with the single-pixel phase contrast imaging technology, the proposed grating-free autofocus method is expected to be applied to transparent samples’ fast autofocus by measuring only the Fourier amplitude.
5. CONCLUSION
Accurate focusing is essential to improve the image quality of SPMI. We have proposed a grating-free autofocus method based on the physical mechanism of the SPMI defocusing. This mechanism is derived from circular convolution and discrete Fourier transformation. The experiment results have demonstrated that only a high-frequency amplitude is measured in SPMI autofocus, which significantly reduces data acquisition and information processing. The proposed autofocus method is an efficient focusing strategy for SPMI. The grating-free autofocus method is to minimize high-frequency loss and to restore high-frequency components of initial target spectra. So the SPMI system can focus on the target rather than the grating. The autofocus experiments have been performed with the targets of the USAF-1951 card and tissue sections. Only four patterns are used for optical modulation. The time to determine if the SPMI system is in focus is less than 180 μs at a DMD frame rate of 22.7 kHz. The image qualities are evaluated by the EOG metric. The EOG values of the image are enhanced twice after autofocus. The experiments have verified that the grating-free method achieves microfocusing with an NA maximum equal to 0.65 and DOF less than 2 μm. The experiments have shown that our grating-free autofocus method does not require imaging to achieve focus. So the method can be extended to realize autofocus for non-visible light SPMI.
APPENDIX A
The energy of gradient (EOG) is used as the evaluating indicator. The EOG evaluates image sharpness by calculating the sum of squared differences between adjacent pixel intensities. The detailed calculation of the EOG is as follows:
In Fig.
Figure 6.Experimental setups of SPI autofocus methods. (a) Dual modulation SPMI and (b) grating-free SPMI.
Figure 7.The out-of-focus and in-focus spectra. (a) The spectra of cervical polyp slices, which are acquired under
Figure 8.The out-of-focus and in-focus spectra. (a) The spectra of esophageal cancer slices, which are acquired under
References
[3] J. Kim. Recent advances in oblique plane microscopy. Nanophotonics, 12, 2317-2334(2023).
[13] X. Zhuang. Nano-imaging with storm. Nat. Photonics, 3, 365-367(2009).
[20] J. H. Shapiro. Computational ghost imaging. Phys. Rev. A, 78, 061802(2008).
[29] O. Baltag. History of automatic focusing reflected by patents. Sci. Innov., 3, 1-17(2015).

Set citation alerts for the article
Please enter your email address