Abstract
A rapid and precise phase-retrieval method based on Lissajous ellipse fitting and ellipse standardization is demonstrated. It only requires two interferograms without pre-filtering, which reduces its complexity and shortens the processing time. The elliptic coefficients obtained by ellipse fitting are used for ellipse standardization. After compensating phase-shift errors by ellipse standardization, the phase distribution is extracted with high precision. It is suitable for fluctuation, noise, tilt-shift, simple and complex fringes. This method is effective for the number of fringes less than 1. The reliability of the method is verified by simulations and experiments, indicating high accuracy and less time consumption.
© 2020 Optical Society of America under the terms of the OSA Open Access Publishing Agreement
1. Introduction
Phase-shifting interferometry (PSI) with non-contact and high precision is a powerful technology for optical measurement [1], optical imaging [2], digital holography [3], etc. In PSI, a crucial technique is phase shifting algorithm (PSA). The classic PSA needs to know the determined phase-shift value [4]. However, the accuracy of the phase extraction drops sharply due to the phase-shift errors [5]. The phase-shift errors including spatially non-uniformity, disturbance, translational-shift and tilt-shift are caused by the instability of light source, air turbulence, miss-calibration and mechanical vibration [6–9], respectively. Substantial efforts have been made to compensate the translational-shift, including the principal component analysis (PCA) [10], the Lissajous figure and ellipse fitting (LEF) [11], the Gram-Schmidt orthogonal normalization and Lissajous ellipse fitting (GS&LEF) [12], the Gram-Schmidt orthogonal normalization and least squares iterative (GS&LSI) [13], the principle component analysis and Lissajous ellipse fitting (PCA&LEF) [14], the Lissajous ellipse fitting and least squares iterative (LEF&LSI) [15], etc. However, it’s difficult to maintain a constant phase-shift value among different pixels due to nonlinearity and spatially non-uniformity of the phase shifter [16]. In 2008, Xu et al. proposed the advanced iterative algorithm to extract tilt-shift [17], but this algorithm is time consuming and can only deal with the small amplitude tilt-shift error (within 27.6%). To improve the flexibility of phase extraction, in 2013, Liu et al. proposed a three-step least squares iterative phase extraction algorithm [18]. Although this algorithm can process large amplitude tilt-shift, it is time consuming. Recently, Wielgus et al. use nonlinear error functional minimization to extract tested phase from two interferograms for fast dynamic measurement [19]. However, this algorithm needs filtering out the background intensity in advance, cannot extracts phase well when there is nonlinear tilt-shift. Hence, we propose an efficient phase extraction algorithm that is insensitive to linear and nonlinear tilt-shift without pre-filtering.
In this paper, we present a rapid and precise phase extraction algorithm from two interferograms based on Lissajous ellipse fitting and ellipse standardization. This method is insensitive to linear and nonlinear tilt-shift and does not need filtering out the background intensity. The Lissajous ellipse fitting is used to extract phase distribution from two interferograms where these interferograms suffer from phase errors including noise, disturbance, spatially non-uniform and tilt-shift. It can acquire high precision because phase-shift errors are compensated successfully by transforming oblique-ellipse into standard-ellipse. Section 2 presents the principle and process of the proposed algorithm based on ellipse fitting and ellipse standardization. In Section 3, the simulation of proposed algorithm is discussed. In Section 4, the proposed algorithm is evaluated with the experimental data. Finally, the conclusion is illustrated in Section 5.
2. Principle
In PSI, the general two phase shifted interferograms can be expressed as:
where, $x$ and y are the pixel positions of rows and columns, ${I_1}(x,y)$ and ${I_2}(x,y)$ are the intensity of two interferograms, ${a_1}(x,y)$ and ${a_2}(x,y)$ represent the background intensity, ${b_1}(x,y)$ and ${b_2}(x,y)$ represent the modulation amplitude, $\phi (x,y)$ represents the tested phase, $\delta (x,y)$ represents the phase-shift value between two interferograms.For simplicity, we omit the $(x,y)$ in following discussion, then, Eqs. (1) and (2) can be rewritten as:
Equation (8) can be also expressed as follow:
we can get the conic-to-parametric transformation parameters as follow:
Finally, from Eqs. (10) and (11), the calibrated phase is given in follow equation.
At first, we plot the Fig. 1 to illustrate how the proposed method robust against phase-shift errors including spatially non-uniformity, fluctuation and tilt-shift. According to Eqs. (1) and (2), we draw ${I_1}$ as the horizontal coordinate and ${I_2}$ as the vertical coordinate to acquire an oblique ellipse with errors as shown in Fig. 1(a). The errors of spatially non-uniformity, fluctuation and tilt-shift are caused by the instability of light source, environmental disturbance and mechanical vibration, respectively. Then, we use the least squares fitting to obtain the coefficients of the oblique ellipse, after that, the transformation parameters are calculated by Eq. (10). The standard ellipse without errors is shown in Fig. 1(b). The phase-shift errors are compensated successfully by transforming oblique-ellipse into standard-ellipse with transformation parameters. Finally, the real phase can be obtained by Eq. (12).
3. Simulation
The robustness and feasibility of the proposed algorithm are discussed from six different conditions, including tilt-shift, noise, fluctuation, different number of fringes, complex fringes and highly non-uniformity. All computations are performed using a processor of Inter I3 3.4 GHz. In the following simulations, the proposed algorithm is compared with Wielgus’s algorithm under the condition of tilt-shift because Wielgus’s algorithm has high accuracy with linear tilt-shift. The image size is 512*512.
3.1 Performance comparison between linear tilt-shift and nonlinear tilt-shift
First, we consider small disturbance of the background intensity and the modulation amplitude. These parameters are set as:
The comparison between the two algorithms with linear tilt-shift is shown in Fig. 3. The phase distributions calculated by the proposed algorithm (RMS = 6.6500 rad) and Wielgus’s algorithm (RMS = 6.6587 rad) are shown in Figs. 3(a) and 3(c), respectively. We can see that both proposed algorithm and Wielgus’s algorithm can effectively extract the phase distribution by comparing Figs. 3(a) and 3(c) with Fig. 2(a). That is to say, the two algorithms are insensitive to linear tilt-shift. However, the phase error distributions calculated by the proposed algorithm (RMS = 0.0667 rad) and Wielgus’s algorithm (RMS = 0.1312 rad) are different as shown in Figs. 3(b) and 3(d). The phase error of Wielgus’s algorithm is nearly 2 times compared to that of the proposed algorithm since the phase-shift calculated by nonlinear error functional minimization is an estimated value in Wielgus’s algorithm. Therefore, the proposed algorithm has higher precision than Wielgus’s algorithm when there is linear tilt-shift.
The comparison between the two algorithms with nonlinear tilt-shift is shown in Fig. 4. The phase distributions calculated by the proposed algorithm (RMS = 6.6552 rad) and Wielgus’s algorithm (RMS = 5.7024 rad) are shown in Figs. 4(a) and 4(c), respectively. By comparing Figs. 4(a) and 4(c) with Fig. 2(a), the proposed algorithm can effectively extract the phase distribution. However, Wielgus’s algorithm fails to extract the phase distribution due to the nonlinear tilt-shift caused by nonlinearity of phase shifter. The phase error distribution calculated by the proposed algorithm (RMS = 0.0579 rad) as shown in Fig. 4(b) is smaller compared with that calculated by Wielgus’s algorithm (RMS = 4.7024 rad) as shown in Fig. 4(d). It indicates that the proposed algorithm can effectively extract phase distribution compared to Wielgus’s algorithm when there is nonlinear tilt-shift. Moreover, the phase error distributions between linear and nonlinear tilt-shift are similar as shown in Figs. 3(b) and 4(b). It indicates that the proposed algorithm can balance linear and nonlinear tilt-shift since phase shift errors are corrected by Eqs. (10) and (11).
3.2 The performance analysis with Noises
In order to analyze the influence of noises on the proposed algorithm, different levels of noises generated by the function $awgn$ in MATLAB are added to the linear tilt-shift simulation of Section 3.1. The RMS phase error and processing time with different signal to noise ratio (SNR) of noises ranging from 13 dB to 60 dB are shown in Table 1. By analyzing Table 1, for the two algorithms, the RMS phase error decreases as the SNR of noises increases, and the processing time is nearly unchanged with different noises. We plot the RMS phase error with noises as shown in Fig. 5(a). The RMS phase error of the two algorithms is nearly unchanged when the SNR of noises is greater or equal to 30 dB. It indicates that the two algorithms are insensitive to noises with SNR $\ge $ 30 dB. And under the same SNR of noise, the phase error of proposed algorithm is smaller than that of Wielgus’s algorithm in Fig. 5(a). That is to say, the proposed algorithm has better anti-noise performance. We plot the processing time with noises as shown in Fig. 5(b). The computational time of proposed algorithm is less than that of Wielgus’s algorithm since the proposed algorithm can directly obtain the tested phase without pre-filtering. Therefore, the proposed algorithm can complete phase extraction faster than Wielgus’s algorithm.
3.3 The performance analysis with Disturbances
To verify the influence of disturbances on the accuracy of the proposed algorithm, the background intensity and the modulation amplitude are set as:
3.4 The performance analysis with the number of fringes
Some PSAs, such as the normalized difference maps (ND) [20] and the difference map normalization and diamond diagonal vector normalization (DN&DDVN) [21], extract phase distribution effectively when the number of fringes in one interferograms is greater than 1. To verify the influence of different fringes on the proposed algorithm, the phase distribution is set as:$\phi = m\cdot \pi ({x^2} + {y^2})$, where $m$ ranging from 0.6 to 10 represents the number of the fringes in one interferogram. The background intensity and modulation amplitude are set as:
3.5 The performance analysis with highly non-uniformity
In addition, to verify the influence of highly non-uniformity on the proposed algorithm, the spatially non-uniformity of $a$ and $b$ is 10 times compared to that in Section 3.4. The background intensity and the modulation amplitude are set as:
3.6 The performance analysis with complex fringes
Finally, for further verify the feasibility of the proposed algorithm to complex fringes, the initial phase is changed as:
where, we use the function $peaks$ in MATALB. The background intensity, modulation amplitude and phase-shift value are same as the simulation of Section 3.4. The phase distribution is asymmetrical as shown in Fig. 9(a). The phase distributions calculated by the proposed algorithm and Wielgus’s algorithm are shown in Figs. 9(b) and 9(c). The phase error distributions calculated by the proposed algorithm and Wielgus’s algorithm are shown in Figs. 9(d) and 9(e). We can see that the two algorithms can effectively extract phase distribution by comparing Figs. 9(b) and 9(c) with 9(a). It indicates that the two algorithms are valid for the complex fringes. According to this simulation, the calculated results are as follow: 1) for the proposed algorithm, the RMS phase error is 0.0669 rad, and the computational time is 0.058 s; 2) for Wielgus’s algorithm, the RMS phase error is 0.3298 rad, and the computational time is 0.975 s. The results indicate that the proposed algorithm has higher precision and less time consumption than Wielgus’s algorithm. Moreover, the extracted phase error distribution (RMS = 0.0669 rad) as shown in Fig. 9(d) is almost the same as the circular fringes (RMS = 0.0667 rad) as shown in Fig. 3(b). It indicates that the proposed algorithm is suitable for both simple and complex fringes.In summary, the proposed algorithm has the excellent performance according to the above results. 1) It can efficiently extract phase distribution with linear and nonlinear tilt-shift; 2) it has higher precision and less time consuming compared to Wielgus’s algorithm with different noises; 3) the accuracy of phase extraction is irrelevant to the levels of fluctuation; 4) phase can be extracted correctly when the number of fringes is less than 1; 5) the proposed algorithm is rapid and precise for simple and complex fringes.
4. Demonstration with experimental data
Some experiments have been performed to confirm the effectiveness of the proposed algorithm. Firstly, the straight fringe interferograms with the number of fringes more than 1 are collected to demonstrate the phase retrieval. The size of interferograms with random phase value captured by complementary metal oxide semiconductor (CMOS) is 2456*2058. After cropping by the function $imcrop$ in MATLAB, the new size of interferograms is 600*600. Figure 10(a) is one of the two interferograms, which suffers from strong background noise. By comparing Figs. 10(b) and 10(c), the proposed algorithm extract phase distribution more accurately compared to Wielgus’s algorithm. Moreover, the processing time of proposed algorithm is 0.062 s and that of Wilegus’s algorithm is 1.894 s. It indicates that the proposed algorithm is faster than Wielgus’s algorithm. That is to say, the proposed algorithm is suitable for fast dynamic measurements.
In addition, the straight fringe interferograms with the number of fringes less than 1 are also collected. The size of interferograms is 300*300. The phase distribution calculated by the proposed algorithm is more precise than that calculated by Wielgus’s algorithm as shown in Fig. 11. Besides, the processing time of proposed algorithm is 0.019 s and that of Wilegus’s algorithm is 0.451 s. It indicates that the proposed algorithm can extract phase distribution rapidly compared to Wielgus’s algorithm.
In order to verify the feasibility of the proposed method to fringes of different shapes, the circular fringe interferograms are collected. The size of interferograms is 300*300. The phase distribution calculated by the proposed algorithm is more precise than that calculated by Wielgus’s algorithm are shown in Fig. 12. Moreover, the processing time of the proposed algorithm is 0.021 s and that of Wilegus’s algorithm is 0.212 s, which indicates that the proposed algorithm can extract phase distribution rapidly compared with Wielgus’s algorithm. Through above experiments, we verify that the proposed algorithm can quickly and correctly extract phase distribution from two interferograms with different fringes, noise, disturbance and tilt-shift.
5. Conclusion
In conclusion, a phase retrieval method from two-frame tilt-shift based on Lissajous ellipse fitting and ellipse standardization is demonstrated. It can rapidly extract phase distribution without filtering out the background intensity and calculating the phase shift. Ellipse standardization can compensate phase shift errors with the elliptic coefficients obtained by ellipse fitting. Then, the tested phase is extracted correctly from the standard-ellipse. We have compared the proposed algorithm with Wielgus’s algorithm by simulations and experiments. The proposed algorithm can rapidly and accurately extract phase distribution in a case where noise, non-uniformity, fluctuation and tilt-shift exist. In addition, the tested phase is extracted correctly when the number of fringes is less than 1. Finally, it is also proved that the proposed algorithm is effective for simple and complex fringes. Considering the simulated and experimental results, it is reasonable to conclude that the proposed algorithm is a powerful tool for rapid and precise phase retrieval with tilt-shift.
Funding
National Natural Science Foundation of China (61575051); Science and Technology Planning Project of Shenzhen Municipality (JCYJ20180306171923592, JSGG20190819175801678).
Disclosures
The authors declare no conflicts of interest.
References
1. D. Malacara, Optical Shop Testing, 3rd ed. (John Wiley & Sons, Inc., 2007).
2. W. Wei, J. Guo, and J.H. Guo, “Phase-shift interferometry surface plasmon microscopy,” N. Opt and N. St 4923, 26–30 (2002). [CrossRef]
3. I. Yamaguchi and T. Zhang, “Phase-shifting digital holography,” Opt. Lett. 22(16), 1268–1270 (1997). [CrossRef]
4. C. T. Farrell and M. A. Player, “Phase-step insensitive algorithms for phase-shifting interferometry,” Meas. Sci. Technol. 5(6), 648–654 (1994). [CrossRef]
5. K. Hibino, F.O. Bob, I.F David, and G.L. Kieran, “Phase-shifting algorithms for nonlinear and spatially non-uniform phase shifts,” J. Opt. Soc. Am. A 14(4), 918–930 (1997). [CrossRef]
6. C. Meneses-Fabian and F. A. Lara-Cortes, “Phase retrieval by Euclidean distance in self-calibrating generalized phase-shifting interferometry of three steps,” Opt. Express 23(10), 13589 (2015). [CrossRef]
7. F.W. Liu, Y.Q. Wu, and F. Wu, “Correction of phase extraction error in phase-shifting interferometry based on Lissajous figure and ellipse fitting technology,” Opt. Express 23(8), 10794–10807 (2015). [CrossRef]
8. C. T. Farrell and M. A. Player, “Phase step measurement and variable step algorithms in phase-shifting interferometry,” Meas. Sci. Technol. 3(10), 953–958 (1992). [CrossRef]
9. A. Albertazzi, A. V. Fantin, A. F. Maia, D. P. Willemann, M. E. Benedet, and M. Viotti, “Use of generalized Ndimensional Lissajous figures for phase retrieval from sequences of interferometric images with unknown phase shifts,” Fringe 2013, 191–196 (2014).
10. J. Vargas, C.O.S. Sorzano, J.C. Estrada, and J.M. Carazo, “Generalization of the principal component analysis algorithm for interferometry,” Opt. Commun. 286, 130–134 (2013). [CrossRef]
11. H.B. Lei, Y. Yao, H.P. Liu, and Y.F Yang, “Efficient phase extraction from three random interferograms based on Lissajous figure and ellipse fitting method,” AOPC 10458, 5 (2017). [CrossRef]
12. Y. Zhang, X.B. Tian, and R.G Liang, “Two-step random phase retrieval approach based on Gram-Schmidt orthonormalization and Lissajous ellipse fitting method,” Opt. Express 27(3), 2575–2588 (2019). [CrossRef]
13. H.Y. Zhang, H. Zhao, Z.X. Zhao, Y.Y. Zhuang, and C. Fan, “Two-frame fringe pattern phase demodulation using Gram-Schmidt orthonormalization with least squares method,” Opt. Express 27(8), 10495–10508 (2019). [CrossRef]
14. Y. Zhang, X.B. Tian, and R.G Liang, “Accurate and fast two-step phase shifting algorithm based on principle component analysis and Lissajous ellipse fitting with random phase shift and no pre-filtering,” Opt. Express 27(14), 20047–20063 (2019). [CrossRef]
15. Y. Zhang, X.B. Tian, and R.G Liang, “Random two-step phase shifting interferometry based on Lissajous ellipse fitting and least squares technologies,” Opt. Express 26(12), 15059–15072 (2018). [CrossRef]
16. M.Y. Chen, H.W. Guo, and C.L. Wei, “Algorithm immune to tilt phase-shifting error for phase-shifting interferometers,” Appl. Opt. 39(22), 3894–3898 (2000). [CrossRef]
17. J.C. Xu, Q. Xu, and L.Q. Cha, “Iterative algorithm for phase extraction from interferograms with random and spatially nonuniform phase shifts,” Appl. Opt. 47(3), 480–485 (2008). [CrossRef]
18. Q. Liu, Y. Wang, F. Ji, and J. He, “A three-step least-squares iterative method for tilt phase-shift interferometry,” Opt. Express 21(24), 29505–29515 (2013). [CrossRef]
19. M. Wielgus, Z. Sunderland, and K. Patorski, “Two-frame tilt-shift error estimation and phase demodulation algorithm,” Opt. Lett. 40(15), 3460–3463 (2015). [CrossRef]
20. H.L. Wang, C.S. Luo, L.Y. Zhong, S.Z. Ma, and X.X. Lu, “Phase retrieval approach based on the normalized difference maps induced by three interferograms with unknown phase shifts,” Opt. Express 22(5), 5147–5154 (2014). [CrossRef]
21. Y. Zhang, X.B. Tian, and R.G. Liang, “Three-step random phase retrieval approach based on difference map normalization and diamond diagonal vector normalization,” Opt. Express 26(22), 29170–29182 (2018). [CrossRef]