Abstract
Autofocusing is a critical operation in automated microscopy applications in the automated vision inspection, measurement and manufacturing fields. The present group recently developed a novel optics-based autofocusing microscope incorporating two achromatic lenses, which provided a large linear autofocusing range, a rapid response, and a high focusing accuracy (Liu et al. in Appl Phys B 109:259–268, 2012). In the present study, the focusing accuracy of the microscope is further improved by replacing the two achromatic lenses with two cylindrical lens assemblies. The autofocusing performance of the modified microscope is characterized numerically by means of ZEMAX simulations and is then verified experimentally using a laboratory-built prototype. The experimental results confirm that compared with the original microscope with achromatic lenses, the modified microscope achieves a greater focusing accuracy (focusing accuracy of ≤1 μm, repeatability of ±1 μm).
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Machine vision systems are an attractive solution for the inspection process in automated mass production lines due to their high throughput, good reliability, and relatively low cost [1, 2]. In practice, such systems require a highly precise autofocusing capability in order to obtain sufficiently sharp images of the object of interest. Thus, many sophisticated autofocusing schemes have been proposed in recent decades [3–7]. Generally speaking, these schemes utilize either optics-based (i.e., hardware) approaches [8–17] or image-based (i.e., software) methods [18–31].
However, existing autofocusing schemes generally achieve a satisfactory focusing performance over only a limited range. Accordingly, in a previous study [32], the present group proposed a novel autofocusing microscope with two optical paths capable of providing both a rapid response and a large linear autofocusing range [32]. However, with the continuing trend toward device miniaturization, it is necessary to improve the focusing accuracy of autofocusing microscopes yet further. Consequently, in the present study, the autofocusing performance of the microscope presented in [32] is further improved by replacing the achromatic lenses in the original design with two cylindrical lens assemblies. The performance of the modified microscope is characterized numerically using commercial ZEMAX software and is then verified experimentally using a laboratory-built prototype.
The remainder of this paper is organized as follows. Section 2 describes the structure of the optics-based autofocusing microscope proposed in [32] based on two achromatic lenses. Section 3 introduces the optics-based autofocusing microscope proposed in the present study. Section 4 describes the numerical evaluation of the proposed microscope and compares its performance with that of the microscope proposed in [32]. Section 5 discusses the experimental characterization of the proposed microscope using a laboratory-built prototype. Finally, Sect. 6 presents some brief concluding remarks.
2 Design of original optics-based autofocusing microscope
This section reviews the basic structure and mathematical background of the autofocusing microscope proposed by the present group in [32].
2.1 Conventional autofocusing method with achromatic lens
Figure 1 presents a schematic illustration of the optical path within a conventional optics-based autofocusing microscope containing a single achromatic lens. When the laser beam strikes point A on the sample surface (located at focal plane F of the objective lens), it is reflected from the surface and is then incident on the CCD sensor at point A′. When the sample surface is moved from plane F to plane O (corresponding to a displacement of +δ), the laser beam strikes point C on the sample surface and is then reflected. The reflected beam intersects plane F at point A1 and is then incident on the CCD sensor at point A1′. From basic geometric principles, the following equation can be obtained:
where Δ is the distance between point A′ and point A1′, f 2 is the effective focal length of the achromatic lens, f 1 is the focal length of the objective lens, d is the radius of the collimated laser beam, and \(K( = f_{2} /f_{1} )\) is the overall magnification of the objective lens and achromatic lens. Equation (1) shows that the shift distance Δ and displacement δ are linearly related.
Figure 2 illustrates the shape of the laser spot on the CCD sensor surface given various values of the defocus distance. Note that in the figure, points (X c, Y c) and (x centroid, y centroid) represent the positions of the geometrical image center and the centroid of the image captured by the CCD sensor, respectively. The image centroid coordinates can be expressed as
where i and j are the row number and column number of the CCD image, respectively, and P ij is the intensity of the pixel located at the intersection of row i and column j. From Eqs. (1), (2) and (3), it is seen that if the image intensity P ij remains constant over the entire CCD image, a linear relationship exists between the centroid of the image captured by the CCD sensor and the defocus distance, δ. Exploiting this linear relationship, an autofocusing capability can be achieved by driving the objective lens using a position feedback signal based on the centroid coordinates of the detected image [32, 33].
2.2 Original autofocusing microscope with two optical paths
Figure 3 shows the basic structure of the autofocusing microscope proposed by the present group in [32]. As shown, the microscope contains two separate optical paths, namely Path I and Path II. In Path I, the light beam emerging from the beam splitter is passed through an achromatic lens and is then incident on a CCD sensor (referred to hereafter as CCD1). Meanwhile, in Optical Path II, the light beam passes through another achromatic lens and is then incident on a second CCD sensor (referred to hereafter as CCD2). From Eqs. (1), (2) and (3), it follows that for a constant displacement Δ of the incident point on the sensing surfaces of the two CCDs, the defocus distance δ changes in accordance with changes in the focal length f 2 of the corresponding achromatic lens. Therefore, in constructing the microscope, CCD1 and CCD2 are taken as identical components, but the achromatic lenses used in Optical Paths I and II, respectively, are different. Specifically, the focal length of the achromatic lens in Optical Path II is greater than that of the achromatic lens in Optical Path I, i.e.,
Note that Eqs. (4) and (5) refer to Optical Path I and Optical Path II, respectively, and \(f_{{2{\rm I}}}\) and \(f_{{2{\rm II}}}\) are the effective focal lengths of the achromatic lenses in Optical Paths I and II, respectively. Optical Path II results in a greater total magnification K II and therefore provides the means to accomplish autofocusing over a short linear range, but with a high focusing accuracy. By contrast, Optical Path I yields a lower total magnification K I and therefore provides the means to accomplish autofocusing over a longer linear range, but with a reduced focusing accuracy. In realizing the microscope shown in Fig. 3, the two optical paths are combined using a self-written autofocus-processing algorithm in order to achieve a rapid autofocusing capability over a large linear autofocusing range without any loss in the focusing accuracy. (Note that for a more comprehensive description of the proposed system, the reader is referred to [32]).
3 Proposed optics-based autofocusing microscope with cylindrical lenses
Figure 4 illustrates the structure of the autofocusing microscope proposed in the present study, in which the two achromatic lenses in the original microscope are replaced by two cylindrical lens assemblies. As shown, the light beam emitted by the laser (Thorlabs HL6501MG, 658 nm) is expanded and collimated by means of a lens and is then bisected by a knife such that its cross section has the form of a semicircle. The light beam is passed through a beam splitter (BS1), a 45° red dichroic filter and an objective lens, and is then incident on the sample surface. The light is reflected from the surface and passes back through the objective lens, filter and BS1, and is then incident on a second beam splitter (BS2), where it is split into two optical paths, namely Path I and Path II. In Optical Path I, the light beam is passed through a lens assembly comprising two cylindrical lenses, CL1 and CL2, placed at right angles to one another, and is then incident on CCD1 (Basler scA1400-17 fm, pixel size of 7.3 μm). Meanwhile, in Optical Path II, the light beam emerging from BS2 enters a third beam splitter (BS3) and is then passed through a second lens assembly consisting of cylindrical lenses CL3 and CL4 before being incident on a second CCD (i.e., CCD2; Basler scA1400-17 fm).
Importantly, the two cylindrical lens assemblies in the proposed design change the geometry of the laser spot incident on the CCD sensors from a semicircle (see Fig. 2) to a semi-ellipse (see Fig. 5). For comparison purposes with the same standard, the total magnification K of the original microscope and proposed microscope are designed as same as possible. From the two cylindrical lens assemblies of the proposed design, the geometry (or both the long axis and short axis) of the laser spot incident on the CCD sensors can be reshaped flexibly. Although the reshaping can be performed with only one cylindrical lens, it is easier to adjust the geometry of the reshaping and get a better image quality of the laser spot by using the two cylindrical lenses assembly. In addition, it is simple to get a value for the focal length, which is not available by stock lenses. In this study, the parameters of the lens assemblies are designed to satisfy the requirement that the geometry of the semi-ellipse is larger than that of the semicircle, so the variation of the centroid position (x centroid, y centroid) with the sensed displacement of the proposed microscope is greater than that of the original microscope. As a result, it improves both the resolution of the autofocusing microscope (i.e., the variation of the centroid (x centroid, y centroid) position with changes in the sensed displacement) and its focusing accuracy. In this study, we use simulation method to design the proposed microscope. It follows the basic principles of geometrical optics and depends on the designed parameters of the proposed microscope, like focal lengths, apertures, etc. In the future, the proposed microscope will be analyzed by using a mathematical model in order to study the relation between the focusing accuracy and the designed parameters of the proposed microscope.
4 Simulation and analysis
4.1 Simulation of proposed optics-based autofocusing microscope with cylindrical lenses
A series of ZEMAX ray-tracing simulations were performed to examine the focusing performance of the proposed autofocusing microscope and to determine suitable values of the main design parameters (e.g., f 1, f 2, K, K II/K I, and so on). Figure 6 illustrates the optical model of the proposed microscope. Table 1 summarizes the selected values of each design parameter. Figure 7 presents the simulation results obtained for the laser spot shapes on CCD1 and CCD2, respectively, given different values of the defocus position.
4.2 Simulation of original optics-based autofocusing microscope with achromatic lenses
The simulations were repeated using the original autofocusing microscope with achromatic lenses (see Fig. 3). Note that both microscopes were designed in such a way as to achieve the same overall magnification; K. Figure 8 shows the optical model of the original microscope. Table 2 summarizes the selected values of the various design parameters. Finally, Fig. 9 presents the simulation results obtained for the laser spot shapes on CCD1 and CCD2, respectively, given different values of the defocus position.
4.3 Simulation results
Figure 10 presents the simulation results obtained for the variation of the image centroid position with the defocus distance in both the original autofocusing microscope and the proposed microscope, respectively. It is seen that for both microscopes, the change in the centroid coordinates (x centroid , y centroid ) is linearly related to the defocus distance, δ. In other words, the numerical results are consistent with the theoretical analysis presented in Sect. 2. The relationships between the image centroid coordinates (x centroid, y centroid) and the defocus distance δ in Optical Paths I and II of the proposed and original autofocusing microscopes are given, respectively, as follows
(Note that the four equations were obtained via a linear curve fitting technique performed using Microsoft Excel. The units of centroid and δ are pixel and μm, respectively.) It is noted that the ratios of the slopes of the linear curves in Eqs. (9) and (10) to those of the linear curves in Eqs. (11) and (12) are equal to 2.06 (=0.5185/0.2522) and 2.02 (=1.0254/0.5067), respectively. In other words, the simulation results show that compared with the original microscope with achromatic lenses, the proposed microscope theoretically achieves both a higher focusing resolution (i.e., the variation of the centroid position (x centroid, y centroid) with the sensed displacement) and an improved focusing accuracy.
5 Experimental characterization of proposed autofocusing microscope
The validity of the proposed autofocusing microscope was verified using a laboratory-built prototype equipped with a human–machine interface (HMI) written in LabVIEW (see Fig. 11). Figure 12 presents a flow chart showing the basic steps in the proposed autofocusing procedure and image processing. In our self-written autofocus-processing algorithm, the resolution of the motion table is equal to 0.1 μm. The objective lens can be moved directly via a linear motor (one step of 1 μm, HF-KP053-B series, Chiuan Yan Tech.) featuring a closed-loop control scheme based upon a feedback signal generated with an optical encoder (resolution of 0.1 μm). Therefore, the resolution of the movement is equal to 1 μm (see the ordinates of Figs. 15 and 17). And the final autofocusing position was measured by using a position feedback signal from the optical encoder. This section covers the minimum background necessary for the image processing. For more comprehensive coverage, the reader is referred to Ref. [1].
Figure 13 shows experimental images of the laser spots on the two CCD sensors given different values of the defocus distance. Finally, Fig. 14 compares the experimental and simulation results for the variation of the image centroid position with the defocus distance in the two optical paths. Figure 14 shows that for both optical paths, the image centroid position varies linearly with the defocus distance δ over a certain defocus range. In addition, it is observed that the experimental results are consistent with the simulation results (presented previously in Sect. 4). From an inspection of the experimental results in Fig. 14, the linear relationships between the image centroid coordinates (x centroid, y centroid) and the defocus distance δ in Optical Paths I and II are given, respectively, by
(Note that Eqs. (13) and (14) were again obtained using a linear curve fitting technique.) The ratio of the slope of the linear curve in Eq. (14) to that of the linear curve in Eq. (13) is equal to 1.95 (=1.0676/0.5479). It is noted that this experimental value is in good agreement with the theoretical value of 1.98 (=1.0254/0.5185) obtained from Eqs. (9) and (10).
To demonstrate the practical feasibility of the proposed microscope, an autofocusing experiment was conducted using a mirror sample given initial defocus distances, δ, ranging from 1,000 to +1,000 μm. Figures 15 and 16 show the experimental results obtained for the variations of the measured autofocusing position and the number of objective lens movement times, respectively, as a function of the initial defocus distance. In general, the results show that the objective lens is moved from the initial defocus distance to the final focusing position (yielding a focusing accuracy of ≤1 μm, repeatability of ±1 μm) with the number of movement times of ≤4.
For comparison purposes, the experiment was repeated using the same laboratory-built prototype, but with only Optical Path II activated. Figures 17 and 18 show the results obtained for the variations of the measured autofocusing position and the number of objective lens movement times, respectively, as a function of the initial defocus position. It can be seen that when only Optical Path II is activated, the focusing accuracy is again less than ≤1 μm, but the number of focusing times is increased slightly to ≤6. In other words, the use of two optical paths in the proposed autofocusing microscope results in a more rapid autofocusing response. In addition, the results confirm that the focusing accuracy of the proposed microscope, i.e., ≤1 μm, is better than that of the original microscope proposed in [32], i.e., 2 μm.
6 Conclusions
This study has proposed a novel optics-based autofocusing microscope with two optical paths, where each path incorporates a cylindrical lens assembly and a CCD sensor. The performance of the proposed microscope has been evaluated by means of numerical simulations and an experimental investigation using a laboratory-built prototype. The results have shown that the proposed microscope has a rapid response (≤4 the number of movement times) and a focusing accuracy of ≤1 μm (repeatability of ±1 μm). As a result, the microscope provides a promising solution for a wide range of automated inspection applications.
References
C.S. Liu, Y.C. Lin, P.H. Hu, Design and characterization of precise laser-based autofocusing microscope with reduced geometrical fluctuations. Microsyst. Technol. 19, 1717–1724 (2013)
J.H. Kang, C.B. Lee, J.Y. Joo, S.K. Lee, Phase-locked loop based on machine surface topography measurement using lensed fibers. Appl. Opt. 50, 460–467 (2011)
P. Petruck, R. Riesenberg, R. Kowarschik, Optimized coherence parameters for high-resolution holographic microscopy. Appl. Phys. B 106, 339–348 (2012)
Z. Zhang, Q. Feng, Z. Gao, C. Kuang, C. Fei, Z. Li, J. Ding, A new laser displacement sensor based on triangulation for gauge real-time measurement. Opt. Laser Technol. 40, 252–255 (2008)
W.Y. Hsu, C.S. Lee, P.J. Chen, N.T. Chen, F.Z. Chen, Z.R. Yu, C.H. Kuo, C.H. Hwang, Development of the fast astigmatic auto-focus microscope system. Meas. Sci. Technol. 20, 045902-1–045902-9 (2009)
M.T. Bin Najam, K.M. Arif, Y.G. Lee, Novel method for laser focal point positioning on the cover slip for TPP-based microfabrication and detection of the cured structure under optical microscope. Appl. Phys. B 111, 141–147 (2013)
P.W. Wachulak, A. Bartnik, M. Skorupka, J. Kostecki, R. Jarocki, M. Szczurek, L. Wegrzynski, T. Fok, H. Fiedorowicz, Water-window microscopy using a compact, laser-plasma SXR source based on a double-stream gas-puff target. Appl. Phys. B 111, 239–247 (2013)
B.J. Jung, H.J. Kong, B.G. Jeon, D.Y. Yang, Y. Son, K.S. Lee, Autofocusing method using fluorescence detection for precise two-photon nanofabrication. Opt. Express 19, 22659–22668 (2011)
P. Zhang, J. Prakash, Z. Zhang, M.S. Mills, N.K. Efremidis, D.N. Christodoulides, Z. Chen, Trapping and guiding microparticles with morphing autofocusing Airy beams. Opt. Lett. 36, 2883–2885 (2011)
S.H. Wang, C.J. Tay, C. Quan, H.M. Shang, Z.F. Zhou, Laser integrated measurement of surface roughness and micro-displacement. Meas. Sci. Technol. 11, 454–458 (2000)
K.C. Fan, C.L. Chu, J.I. Mou, Development of a low-cost autofocusing probe for profile measurement. Meas. Sci. Technol. 12, 2137–2146 (2001)
Y. Tanaka, T. Watanabe, K. Hamamoto, H. Kinoshita, Development of nanometer resolution focus detector in vacuum for extreme ultraviolet microscope. Jpn. J. Appl. Phys. 45, 7163–7166 (2006)
Z. Li, K. Wu, Autofocus system for space cameras. Opt. Eng. 44, 053001-1–053001-5 (2005)
H.G. Rhee, D.I. Kim, Y.W. Lee, Realization and performance evaluation of high speed autofocusing for direct laser lithography. Rev. Sci. Instrum. 80, 073103-1–073103-5 (2009)
M. He, W. Zhang, X. Zhang, A displacement sensor of dual-light based on FPGA. Optoelectron. Lett. 3, 294–298 (2007)
K.H. Kim, S.Y. Lee, S. Kim, S.G. Jeong, DNA microarray scanner with a DVD pick-up head. Curr. Appl. Phys. 8, 687–691 (2008)
C.S. Liu, S.H. Jiang, A novel laser displacement sensor with improved robustness toward geometrical fluctuations of the laser beam. Meas. Sci. Technol. 24, 105101-1–105101-8 (2013)
T. Pengo, A. Munoz-Barrutia, C. Ortiz-De-Solorzano, Halton sampling for autofocus. J. Microsc. 235, 50–58 (2009)
S. Lee, J.Y. Lee, W. Yang, D.Y. Kim, Autofocusing and edge detection schemes in cell volume measurements with quantitative phase microscopy. Opt. Express 17, 6476–6486 (2009)
H.C. Chang, T.M. Shih, N.Z. Chen, N.W. Pu, A microscope system based on bevel-axial method auto-focus. Opt. Lasers Eng. 47, 547–551 (2009)
C.Y. Chen, R.C. Hwang, Y.J. Chen, A passive auto-focus camera control system. Appl. Soft Comput. 10, 296–303 (2010)
M.A. Bueno-Ibarra, J. Alvarez-Borrego, L. Acho, M.C. Chavez-Sanchez, Fast autofocus algorithm for automated microscopes. Opt. Eng. 44, 063601-1–063601-8 (2005)
V.V. Bezzubik, S.N. Ustinov, N.R. Belashenkov, Optimization of algorithms for autofocusing a digital microscope. J. Opt. Technol. 76(10), 603–608 (2009)
J.H. Lee, Y.S. Kim, S.R. Kim, I.H. Lee, H.J. Pahk, Real-time application of critical dimension measurement of TFT-LCD pattern using a newly proposed 2D image-processing algorithm. Opt. Lasers Eng. 46, 558–569 (2008)
S.L. Brazdilova, M. Kozubek, Information content analysis in automated microscopy imaging using an adaptive autofocus algorithm for multimodal functions. J. Microsc. 236, 194–202 (2009)
S. Yazdanfar, K.B. Kenny, K. Tasimi, A.D. Corwin, E.L. Dixon, R.J. Filkins, Simple and robust image-based autofocusing for digital microscopy. Opt. Express 16, 8670–8677 (2008)
E.F. Wright, D.M. Wells, A.P. French, C. Howells, N.M. Everitt, A low-cost automated focusing system for time-lapse microscopy. Meas. Sci. Technol. 20, 027003-1–027003-4 (2009)
T. Kim, T.C. Poon, Autofocusing in optical scanning holography. Appl. Opt. 48, H153–H159 (2009)
M. Moscaritolo, H. Jampel, F. Knezevich, R. Zeimer, An image based auto-focusing algorithm for digital fundus photography. IEEE Trans. Med. Imaging 28, 1703–1707 (2009)
Y. Shao, J. Qu, H. Li, Y. Wang, J. Qi, G. Xu, H. Niu, High-speed spectrally resolved multifocal multiphoton microscopy. Appl. Phys. B 99, 633–637 (2010)
S.J. Abdullah, M.M. Ratnam, Z. Samad, Error-based autofocus system using image feedback in a liquid-filled diaphragm lens. Opt. Eng. 48, 123602-1–123602-9 (2009)
C.S. Liu, P.H. Hu, Y.C. Lin, Design and experimental validation of novel optics-based autofocusing microscope. Appl. Phys. B 109, 259–268 (2012)
A. Weiss, A. Obotnine, A. Lasinski, Method and Apparatus for the Auto-focussing Infinity Corrected Microscopes. U.S. Patent 7700903, 2010
Acknowledgements
The authors gratefully acknowledge the financial support provided to this study by the National Science Council of Taiwan under Grant No. NSC 102-2221-E-194-023 and the Ministry of Science and Technology of Taiwan under Grant No. MOST 103-2221-E-194-006-MY3. The authors would also like to express their appreciation to Mr. Pin Hao Hu of the Additive Manufacturing and Laser Application Center, Industrial Technology Research Institute, Taiwan, for the technological assistance provided throughout the course of this study.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Liu, CS., Jiang, SH. Design and experimental validation of novel enhanced-performance autofocusing microscope. Appl. Phys. B 117, 1161–1171 (2014). https://doi.org/10.1007/s00340-014-5940-9
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00340-014-5940-9