Abstract
To overcome the phase shift error in phase shifting interferometry, a two-step random phase retrieval approach based on Gram-Schmidt (GS) orthonormalization and Lissajous ellipse fitting (LEF) method (GS&LEF) is proposed. It doesn’t need pre-filtering, and can obtain relatively accurate phase distribution with only two phase shifted interferograms and less computational time. It is suitable for different background intensity, modulation amplitude distributions and noises. Last but not least, this method is effective for circular, straight or complex fringes. The simulations and experiments verify the correctness and feasibility of GS&LEF.
© 2019 Optical Society of America under the terms of the OSA Open Access Publishing Agreement
1. Introduction
Phase-shifting interferometry (PSI) has been widely used in the high precision phase measurement, such as optical surface testing, deformation measurement [1–3]. In order to obtain accurate measured phase, the outstanding phase-shifting algorithm (PSA) is essential. For the standard PSA, its accuracy depends on the accuracy of the phase shift [4–6], which should be a special constant (e.g. π/2). However, the practical phase shift is difficult to equal to the theoretical phase shift due to the phase shift error caused by the miscalibration of piezo-transducer, vibrational error, air turbulence in the working environment, instability of the laser frequency, and so on [7–9].
In recent years, to suppress the phase shift error, kinds of random PSAs have been developed [10–17], they can be divided to two types. The first type is multi-step random PSA, where the number of the phase shifted interferograms is greater than or equal to 3. While it can obtain the tested phase more easily, the phase error may be introduced due to the multi-interferograms, and it spends more time on the measurement and calculation [18]. introduced an advanced iterative algorithm (AIA) to extract phase distribution from randomly phase shifted interferograms, it is based on a least-squares iterative procedure. The algorithm provides stable convergence and accurate phase extraction with as few as three interferograms, even when the phase shifts are completely random. However, this approach consumes a lot of computational time [19–25]. proposed a series of PSAs based on principal component analysis (PCA), which can fast and easily extract the phase distribution from randomly phase shifted interferograms. The PCA is an efficient technique for phase extraction by converting a set of possibly correlated variables into a set of values of uncorrelated variables. The main drawback of this approach is that it cannot determine the global sign of the measured phase.
The second type is the two-step random PSA [26]. presented a two-step demodulation based on the Gram-Schmidt orthonormalization method (GS), where phase-shift value is random and can be any value. The main drawback is that it requires subtracting the DC term by filtering, and filtering introduces error. In [11], Farrell and Player utilized Lissajous figures and ellipse fitting to calculate the phase difference between two interferograms, but it also needs pre-filtering and the correction result is not accurate if the intensity distribution is non-uniform. In [27], Liu et al. proposed a PSA which can simultaneously extract the tested phase and phase shift from only two interferograms using Lissajous figure and ellipse fitting technology, however, the two interferograms used in this algorithm need to be filtered by the Hilbert-Huang pre-filtering. Most two-step PSAs need pre-filtering to subtract the background intensity, the pre-filtering costs more time and may introduce extra errors, but two-step PSAs will save the measuring time since they only need two interferograms.
Recently, we proposed a random two-step PSA based on Lissajous ellipse fitting and least squares technologies [16], although this algorithm uses only two interferograms to extract the relatively accurate tested phase distribution and unknown phase shift without pre-filtering, the least squares technologies are time consuming.
For two-step random PSAs, it is difficult to obtain the high-precision phase distribution with less time because of the pre-filtering or the DC term subtraction. Hence, to save time and increase the accuracy, the research of two-step PSA without pre-filtering is essential.
In this paper, we will discuss the fast and accurate two-step phase retrieval approach with unknown phase shift. Section 2 presents the principle and process of the proposed PSA based on Gram-Schmidt orthonormalization and Lissajous ellipse fitting method (GS&LEF). In Section 3 the simulation of GS&LEF is discussed, and the comparison with GS is performed. Section 4 evaluates the novel algorithm with the experimental data. The conclusion is finally drawn in Section 5.
2. Principles
In PSI, the intensity distribution of the phase shifted interferograms can be expressed as:
where m = 1,2,...,M represents the image index with M the total number of phase shifted interferograms, M is set to 2., and respectively represent the background intensity, the modulation amplitude and the measured phase. represents the phase shift between interferograms. For simplicity, we define , and omit the subscript in the following discussion.For orthonormalizing two vectors {, }, there are three simple steps according to the GS method [26]. First, we take one of the vectors and normalize it:
Then, we orthogonalize u2 with respect to the vector, subtracting its projection asAt last, we obtain by normalizing Note that, in the above equations, and respectively represent the 2-norm and the inner product.According to the GS method outlined below, we orthonormalizing and as:
is obtained bywhere .Then, following Eq. (3), we can obtain as:
where ,andcorresponds to the image columns and rows, respectively.Finally, we obtain by Eqs. (4) and (6)
where .After the GS process, we set and , then we can get and as
and are rewritten as where,,.Because, Eqs. (11) and (12) can be rewritten as
According to Eq. (13), a general ellipse function can be obtainedA general conic function can be also expressed by the following second order polynomial:For an ellipse, Eq. (15) needs to meet the conditions of and .In the following, we will use the Lissajous ellipse fitting (LEF) method to extract the real phase. At first, we plot an approximate ellipse with as the x coordinate and as the y coordinate, secondly, the coefficients of the ellipse function can be obtained by the least squares fitting, thirdly, the semi-major amplitude , semi-minor amplitude , the center offset , and the ellipse orientation angle with respect to the x-axis can be calculated by
Fourthly, we transform the ellipse to a perfect circle centered at the origin using Eq. (17).where and are the numerator and denominator of after using the LEF method, the transformation matrix iswhere ,.After the transformation, the real phase can be finally calculated by Eq. (19)
3. Simulation
To express the performance of the proposed method GS&LEF, we perform several simulations, moreover, we compare the proposed method with the well-evaluated two-step method GS. In the following, we assume that the phase distribution, where , the relative phase shift between the first and second interferograms is 1 rad, the image size is 401*401. Figure 1(a) shows the theoretical phase distribution (PV = 31.416 rad, RMS = 6.656 rad).
In the first simulation, the background intensity and modulation amplitude distributions of the two interferograms are uniform, , , the two phase shifted interferograms with circular fringes are shown in Figs. 1 (b) and 1 (c). In the second simulation, there are fluctuations in the background intensity and modulation amplitude distributions between different interferograms, we set . In the third simulation, the background intensity and modulation amplitude are non-uniform, ,. In the fourth simulation, both the fluctuation and non-uniformity of the background intensity and modulation amplitude exist, such as
The fifth simulation is similar to the first simulation withand , we only add 20dB Gauss noise generated by the awgn function of Matlab to the two interferograms. In the last simulation, we add noise with SNR of 20dB to the fourth simulation.
The results of six different simulations are shown in Fig. 2, N represents the index of the simulation, the first and third rows show the phase distributions calculated by GS and GS&LEF, and the phase error distributions are displayed in the second and fourth rows. The detailed RMS phase errors and computational time are represented in Table 1. We can see that the phase distributions are similar for the two different methods in the six simulations, that is to say, the two methods are both robust for different situations. However, the phase error distributions are different for the different simulations and methods.
From the first simulation, we can see that the phase error is approximately equal to zero for GS&LEF when the background intensity and modulation amplitude are perfect, but the phase error also exists for GS (RMS = 0.1610 rad) because of the filtering error and approximation. In the second simulation, the RMS phase error for GS is also very large (RMS = 0.1667 rad), and the phase error for GS&LEF is a very small value with a RMS value of 2.4492e-6 rad, we can get the conclusion that GS&LEF can suppress the effect of background intensity and modulation amplitude fluctuation. The third simulation is a little complex because the background intensity and modulation amplitude distributions are non-uniform for each pixel. The non-uniformity causes some errors for both methods, but the phase error of GS&LEF (RMS = 0.0090 rad) is far smaller than that of GS (RMS = 0.1596 rad). The fourth simulation is more complex than the third simulation, both the fluctuation and non-uniformity of the background intensity and modulation amplitude exist, but the RMS phase errors for third and fourth simulations are similar, the RMS phase errors are 0.1604 rad and 0.0081 rad for GS and GS&LEF respectively. From the first to fourth simulations, we can know that, for GS, the RMS phase error is similar because the filtering error is larger than other errors, such as the non-uniformity between different pixels and fluctuation error between different interferograms, and for GS&LEF, the effect of the non-uniformity is larger than the fluctuation since most of the fluctuation error between different interferograms can be suppressed by the LEF process.
From the fifth simulation, we begin to discuss the effect of noise, we only add the noise to the interferograms, and the background intensity and modulation amplitude are perfect, but we found that the phase error is increasing for both methods, especially for GS&LEF, the RMS phase error which is 0.1281 rad is more than 10 times of the third simulation, that is to say, LEF process only can correct the piston, it cannot correct the noise, and the RMS phase error of GS (0.1701 rad) is a little bigger than that of the third simulation, but the effect of the filtering error is also largest. The sixth simulation is most complex, the non-uniformity between different pixels, fluctuation error between different interferograms and noise are all added to the interferograms, the mixed errors cause the largest phase error for both methods, but the RMS phase error of GS (0.1883 rad) is also larger than that of GS&LEF (0.1449 rad).
From Table 1, we can see that the accuracy of GS&LEF is higher than that of GS for each simulation since there is no pre-filtering in GS&LEF, and the LEF process can extract the accurate phase distribution. In addition, the computational time of GS&LEF is less than that of GS since the pre-filtering spends more time.
Figure 3 shows the ellipses before and after using LEF method for GS&LEF in different simulations, we can see that, after using the LEF method, the ellipse not centered at the origin was transformed to an approximate circle centered at the origin as the above theoretical description. For the front four simulations, whether the ellipse before using the LEF method or the circle after using the LEF method, the curve is smooth, but the curve is not smooth for the last two simulations since the noise exists, and the LEF method cannot remove this effect, hence, it would be best to suppress the noise before using the proposed method to further increase the accuracy.
We know that the phase shift value and the level of noise are important to the PSAs, hence, it is necessary to discuss the phase error due to different phase shifts and levels of noises for the proposed method and compare it with GS. We uniformly set the distribution of the phase shift in the range of 0.4 rad to 2.6 rad, and we study the effect of different levels of noises for every phase shift value, other simulated conditions are same as the fourth simulation discussed above, both the fluctuation and non-uniformity of the background intensity and modulation amplitude exist, the RMS phase error curves of GS and GS&LEF for the different phase shifts with the different levels of noises are plotted in Fig. 4, from Fig. 4, we can conclude that: 1) for GS&LEF, the RMS phase error is decreasing with the decrease of the noise, but for GS, there is no relationship between the RMS phase error and the level of noise because the pre-filtering error is the main error; 2) for GS-LEF, the RMS phase errors are relatively stable and small when the SNR of noise is more than 50dB, they are less than 0.03 rad, hence we can ignore it, but for GE&LEF, the phase error can’t be ignored when the SNR of noise is more than 50dB; 3) when the phase shift is equal to 0.4 rad and the SNR of noise is 20dB, for GS&LEF, the phase error is relatively large, that is to say, the GS&LEF is invalid in this situation since the phase shift value is too small, the phase error of GS is also large in this situation, but it is valid; 4) when the phase shift is between 0.6 rad and 2.6 rad, both GS and GS&LEF are valid, the RMS phase errors for GS&LEF and GS are respectively less than 0.25 rad and 0.3 rad; 5) when the phase shift is between 1.0 rad and 2.0 rad, the RMS phase error of GS&LEF is less than that of GS, for other range, sometimes the accuracy of GS is higher, hence the best range of phase shift for GS&LEF is between 1 rad and 2 rad; 6) of course, like other two-step PSAs, if the phase shift is close to 0 or π rad, a large phase error also exists, so the phase shifts of both methods should be deviated from 0 or π rad to achieve high accuracy.
Finally, we study the effects induced by different phase distributions to further verify the effectiveness of GS&LEF and compare it with GS. We respectively simulate the plane wavefront with and the complex wavefront , where we use the function peaks in Matlab, other conditions are same as the sixth simulation. For the plane wavefront, the fringes are straight, as shown in Fig. 5(a), and the theoretical phase distribution is shown in Fig. 5(b). Figure 6 represents the simulated results of plane wavefront using GS and GS&LEF. For the complex wavefront, the fringes are the asymmetrical complex fringes, as shown in Fig. 7(a), the complex phase distribution is drawn in Fig. 7(b), and the simulated results are shown in Fig. 8. According to the above simulations, the calculated results are as follows:1) for the plane wavefront, the RMS phase errors of GS and GS&LEF are respectively 0.1798 rad and 0.1561 rad, and the computational time of GS and GS&LEF are 4.85 s and 3.49 s; 2) for the complex wavefront, the RMS phase error of GS and GS&LEF are respectively 0.2074 rad and 0.1545 rad, and the computational time of GS and GS&LEF are 4.93 s and 3.52 s. The results indicate that the proposed method is suitable for circular, straight and complex fringes, and the accuracy of GS&LEF is higher than that of GS for all the phase distributions, furthermore, for all the phase distributions, GS&LEF costs less time than GS.
Based on the above simulations, the conclusions of the proposed GS&LEF can be summarized as: 1) It can obtain the accurate tested phase distribution by only two phase shifted interferograms without the pre-filtering; 2) it can save the computational time; 3) the phase shift can be random, when the large noise exist, the best range of phase shift is between 1.0 rad and 2.0 rad; 4) whether the circular, straight or complex fringes, the proposed method is valid, and the accuracy of GS&LEF is higher than that of GS.
4. Demonstration with experimental data
To verify the feasibility and outstanding performance of the proposed approach, we perform the experiments with the different fringes. Firstly, four phase shifted interferograms with circular fringes are collected to perform the phase retrieval by GS and GS&LEF, the size of the interferograms is 301*301, and the phase shifts are 0, π/2, π and 3π/2 respectively. The phase extracted by standard 4-step PSA is set as the reference phase due to its high accuracy. One of the interoferograms is shown in Fig. 9(a), Fig. 9(b) shows the reference phase distribution, and the phase distributions extracted by GS and GS&LEF are drawn in Figs. 9(c) and 9(d). The differences between the reference phase and the phase extracted by GS and GS&LEF are shown in Figs. 9(e) and 9(f), the RMS values of the differences are respectively 0.1453 rad and 0.0817 rad, further verifying the accuracy of GS&LEF is higher than that of GS. Moreover, the computational time of GS&LEF (3.52 s) is less than that of GS (4.37 s). For GS&LEF, the ellipses before and after using LEF method are plotted in Figs. 9(g) and 9(h).
Then, to verify the effectiveness of GS&LEF, the phase shifted interferograms with the straight and relatively complex fringes which are asymmetrical are also collected, and the comparison for GS and GS&LEF are performed as the circular fringes. The size of the interferograms with the straight fringes is 401*401, and the size of the interferograms with the complex fringes is 301*301, other conditions are same as the circular fringes. Figures 10 and 11 show the results of the straight and complex fringes, we can see that, both GS and GS&LEF are effective for the different fringes. Moreover, for the straight fringes, the RMS values of the differences between the reference phase and the phase extracted by GS and GS&LEF are 0.3317 rad and 0.3110 rad, and the computational time for GS and GS&LEF are 5.67 s and 4.48 s respectively. And, for the complex fringes, the RMS values of the differences for GS and GS&LEF are 0.1069 rad and 0.1054 rad, and the computational time are 4.27 s and 3.64 s. For these two kinds of fringes, the accuracy of GS&LEF is a little higher than that of GS, the differences between the reference phase and the phase extracted by GS and GS&LEF are similar since there are large noises in the interferograms. For the computational time, we get the conclusion the same as the circular fringes. Through the above experiments, we verify that, for both the circular, straight and complex fringes, the proposed GS&LEF without pre-filtering can obtain relatively accurate result with less computational time by only two interferograms.
5. Conclusion
In this paper, we have proposed a two-step phase retrieval approach based on Gram-Schmidt orthonormalization and Lissajous ellipse fitting method with random phase shift, the GS method is performed firstly, then the tested phase distribution are obtained by the LEF process. We have compared this proposed method with GS by the simulated data and experimental data. The proposed method can directly obtain the tested phase with no pre-filtering and less computational time, and it can achieve high accuracy with different background intensity, modulation amplitude distributions and noises. In addition, the best range of phase shift which is between 1.0 rad and 2.0 rad is given. Finally, the proposed algorithm is effective for the circular, straight or complex fringes. The simulations and experiments demonstrate the validity of the proposed method. In summary, this proposed method is a power tool for the phase retrieval with arbitrary phase shift.
Funding
National Natural Science Foundation of China (NSFC) (11304034); Program of China Scholarship Council (201508220104); Program of Jilin Provincial Educational Department (2015241); State Key Laboratory of Applied Optics; Doctoral Research Foundation of Northeast Electric Power University (BSJXM-201218); Scientific Basic Research Foundation of Northeast Electric Power University.
References
1. D. Malacara, Optical Shop Testing, 3rd ed. (John Wiley & Sons, Inc., 2007), Chap. 1–7.
2. J. H. Bruning, D. R. Herriott, J. E. Gallagher, D. P. Rosenfeld, A. D. White, and D. J. Brangaccio, “Digital wavefront measuring interferometer for testing optical surfaces and lenses,” Appl. Opt. 13(11), 2693–2703 (1974). [CrossRef] [PubMed]
3. C. Tian and S. Liu, “Two-frame phase-shifting interferometry for testing optical surfaces,” Opt. Express 24(16), 18695–18708 (2016). [CrossRef] [PubMed]
4. K. Kinnstaetter, A. W. Lohmann, J. Schwider, and N. Streibl, “Accuracy of phase shifting interferometry,” Appl. Opt. 27(24), 5082–5089 (1988). [CrossRef] [PubMed]
5. K. Hibino, B. F. Oreb, D. I. Farrant, and K. G. Larkin, “Phase-shifting algorithms for nonlinear and spatially nonuniform phase shifts,” J. Opt. Soc. Am. A 14(4), 918–930 (1997). [CrossRef]
6. M. Servin, J. C. Estrada, and J. A. Quiroga, “The general theory of phase shifting algorithms,” Opt. Express 17(24), 21867–21881 (2009). [CrossRef] [PubMed]
7. D. Malacara, Optical Shop Testing, 3rd ed. (John Wiley & Sons, Inc., 2007), Chap. 14.
8. P. J. de Groot, “Vibration in phase-shifting interferometry,” J. Opt. Soc. Am. A 12(2), 354–365 (1995). [CrossRef]
9. L. L. Deck, “Suppressing phase errors from vibration in phase-shifting interferometry,” Appl. Opt. 48(20), 3948–3960 (2009). [CrossRef] [PubMed]
10. C. T. Farrell and M. A. Player, “Phase-step insensitive algorithms for phase-shifting interferometry,” Meas. Sci. Technol. 5(6), 648–654 (1994). [CrossRef]
11. 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]
12. Y. Xu, Y. Wang, Y. Ji, H. Han, and W. Jin, “Three-frame generalized phase-shifting interferometry by a Euclidean matrix norm algorithm,” Opt. Lasers Eng. 84, 89–95 (2016). [CrossRef]
13. F. Liu, J. Wang, Y. Wu, F. Wu, M. Trusiak, K. Patorski, Y. Wan, Q. Chen, and X. Hou, “Simultaneous extraction of phase and phase shift from two interferograms using Lissajous figure and ellipse fitting technology with Hilbert-Huang prefiltering,” J. Optics-UK 18(10), 105604 (2016). [CrossRef]
14. J. Xu, Q. Xu, and L. Chai, “Iterative algorithm for phase extraction from interferograms with random and spatially nonuniform phase shifts,” Appl. Opt. 47(3), 480–485 (2008). [CrossRef] [PubMed]
15. Y. C. Chen, P. C. Lin, C. M. Lee, and C. W. Liang, “Iterative phase-shifting algorithm immune to random phase shifts and tilts,” Appl. Opt. 52(14), 3381–3386 (2013). [CrossRef] [PubMed]
16. Y. Zhang, X. Tian, and R. Liang, “Fringe-print-through error analysis and correction in snapshot phase-shifting interference microscope,” Opt. Express 25(22), 26554–26566 (2017). [CrossRef] [PubMed]
17. Y. Zhang, X. Tian, and R. Liang, “Random two-step phase shifting interferometry based on Lissajous ellipse fitting and least squares technologies,” Opt. Express 26(12), 15059–15071 (2018). [CrossRef] [PubMed]
18. Z. Wang and B. Han, “Advanced iterative algorithm for phase extraction of randomly phase-shifted interferograms,” Opt. Lett. 29(14), 1671–1673 (2004). [CrossRef] [PubMed]
19. J. Vargas, J. A. Quiroga, and T. Belenguer, “Phase-shifting interferometry based on principal component analysis,” Opt. Lett. 36(8), 1326–1328 (2011). [CrossRef] [PubMed]
20. J. Vargas, J. A. Quiroga, and T. Belenguer, “Analysis of the principal component algorithm in phase-shifting interferometry,” Opt. Lett. 36(12), 2215–2217 (2011). [CrossRef] [PubMed]
21. J. Deng, K. Wang, D. Wu, X. Lv, C. Li, J. Hao, J. Qin, and W. Chen, “Advanced principal component analysis method for phase reconstruction,” Opt. Express 23(9), 12222–12231 (2015). [CrossRef] [PubMed]
22. J. Xu, W. Jin, L. Chai, and Q. Xu, “Phase extraction from randomly phase-shifted interferograms by combining principal component analysis and least squares method,” Opt. Express 19(21), 20483–20492 (2011). [CrossRef] [PubMed]
23. K. Yatabe, K. Ishikawa, and Y. Oikawa, “Improving principal component analysis based phase extraction method for phase-shifting interferometry by integrating spatial information,” Opt. Express 24(20), 22881–22891 (2016). [CrossRef] [PubMed]
24. K. Yatabe, K. Ishikawa, and Y. Oikawa, “Simple, flexible, and accurate phase retrieval method for generalized phase-shifting interferometry,” J. Opt. Soc. Am. A 34(1), 87–96 (2017). [CrossRef] [PubMed]
25. K. Yatabe, K. Ishikawa, and Y. Oikawa, “Hyper ellipse fitting in subspace method for phase-shifting interferometry: Practical implementation with automatic pixel selection,” Opt. Express 25(23), 29401–29416 (2017). [CrossRef]
26. J. Vargas, J. A. Quiroga, C. O. Sorzano, J. C. Estrada, and J. M. Carazo, “Two-step demodulation based on the Gram-Schmidt orthonormalization method,” Opt. Lett. 37(3), 443–445 (2012). [CrossRef] [PubMed]
27. F. Liu, J. Wang, Y. Wu, F. Wu, M. Trusiak, K. Patorski, Y. Wan, Q. Chen, and X. Hou, “Simultaneous extraction of phase and phase shift from two interferograms using Lissajous figure and ellipse fitting technology with Hilbert-Huang prefiltering,” J. Optics-UK 18(10), 105604 (2016). [CrossRef]