Abstract
In a recent published work we proposed a technique to recover the absolute phase maps of two fringe patterns with different spatial frequencies. It is demonstrated that a number of selected frequency pairs can be used for the proposed approach, but the published work did not provide a guideline for frequency selection. In addition, the performance of the proposed technique in terms of its anti-noise capability is not addressed. In this paper, the rules for selecting the two frequencies are presented based on theoretical analysis of the proposed technique. Also, when the two frequencies are given, the anti-noise capability of technique is formulated and evaluated. These theoretical conclusions are verified by experimental results.
©2012 Optical Society of America
1. Introduction
Fringe projection profilometry (FPP) is one of the most promising approaches for non-contact 3D shape measurement. A challenging task associated with existing phase measurement techniques in FPP is phase unwrapping operation, which aims to recover the absolute phase maps from the wrapped phase maps falling in . Although various phase unwrapping methods have been proposed, such as spatial [1], temporal [2,3] and period coding [4], recovery of absolute phase maps is still a challenging task when the wrapped phase maps contain noise, sharp changes or discontinuities [2].
To achieve reliable and accurate phase unwrapping for FPP, a variety of temporal phase unwrapping approaches have been proposed following work of Huntley and Saldner [2]. The general idea behind the temporal method is the use of multiple fringe patterns that are projected onto the project, yielding a sequence of wrapped phase maps as a function of time t. These phase maps can be considered as a 3D phase map , denoting the wrapped phase value at pixel at the tth phase map (t = 0, 1, 2, …, s). Phase unwrapping can be carried out along any path in the 3D space in order to avoid noise or boundaries and thus achieving correct recovery of the absolute phase map. While the method proposed in [2] is demonstrated to be effective for accurate phase unwrapping, it also suffers from the drawback of requiring many intermediate phase patterns (e.g., 7 sets of fringe patterns were employed in [2]), which is obviously not suitable for fast or real-time measurement. In order to increase the efficiency, Zhao, et al. [3] proposed to use two image patterns, one of which has a very low spatial frequency in contrast to the other. In particular, the low spatial frequency pattern only has a single fringe. Such a pattern has its absolute phase value falling within the range , and hence it can be used as a reference to calculate the fringe number of the other fringe pattern, thus yielding its absolute phase map. Li, et al. [5,6] also employ the phase map of single fringe pattern as reference to unwrap high spatial frequency fringe patterns, and it is shown that the spatial frequency of the pattern to be unwrapped is determined by the level of noise. Following the same method in [5], Liu, et al. [7] project a single fringe pattern and a high frequency pattern in one shot to accelerate the speed of 3D measurement. Although these approaches work well in principle, the gap between two spatial frequencies should be restricted within a range based on the noise level or steps in the low frequency phase maps. This is because under the same lighting conditions, fringe patterns with lower frequency are more vulnerable to the influence of noise or interferences [3,6,8], and use of noisy low-frequency pattern as the reference will lead to mistakes for unwrapping the high-frequency phase maps. Therefore, the techniques proposed in [3,5,6] may not work well when the phase maps are noisy or discontinuous, and multiple intermediate image patterns are still required in order to reduce the frequency gaps among adjacent patterns. This problem is studied again by Saldner and Huntley [9,10], showing that to unwrap a phase map of frequency f, sets of fringe patterns are required. A similar result is also reached by Zhang [8,11], indicating that the spatial frequency can be increased by a factor of 2 between two adjacent patterns. Taking a typical FPP arrangement as an example where the image pattern has 16 fringes, 5 image patterns are still required with these approaches. Towers, et al. [12] propose an optimal frequency selection method to increase the unambiguous range of the measurement, showing that at least three frequencies were needed for a defined reliability in fringe number calculation. Therefore, existing temporal phase unwrapping techniques still require the use of multiple image patterns, and reduction of the number of image pattern while keeping anti-noise capability is still a challenging problem.
A set of technologies, which are similar by name to the above and referred to as two (or multiple wavelength) interferometry, are also proposed in the area of traditional interferometry, where use of multiple light sources with different wavelengths have shown to yield significant advantages for distance measurement [13,14]. When a monochromic light with wavelength is used, the measurement of a optical path difference (OPD) is suffered from ambiguity of module , making to be the so-called unambiguous OPD range (UR) for the measurement. The idea behind multiple wavelength interferometry technology is that by using multiple laser beams with different wavelengths in an interferometer, the resulting interferometric pattern is equivalent to the result of using a single laser beam in the same interferometer with a much longer wavelength, implying a significant increase in UR. If the laser beams of different wavelength and are used in two wavelength interferometry (TWI), an interferometric patterns can be formed with the equivalent wavelength of , where can be made much larger than and . With the development of digital cameras and computers, the two wavelength interferometry is considerably improved by the introduction of the phase shifting algorithm [15,16]. Houairi, et al. [17] present an analytical algorithm, showing that the actual UR could be much larger than the equivalent wavelength depending on the wavelengths and different sources of error.
In summary of the above, we have seen two classes of research effort. On one hand, temporal phase unwrapping techniques aim to recover the absolute phase map of fringe patters used for FPP. Due to the existence of noise, multiple intermediate fringe patterns must be used. On the other hand, the approaches of multiple wavelength interferometry aim to increase of the UR for distance measurement; they employ an equivalent fringe pattern from the use of multiple laser sources with different wavelengths in the same interferometer setup. The spatial wavelength of the equivalent pattern can be made larger than the individual laser sources, hence leading to increase of the UR for distance measurement. However, it is not guaranteed that the spatial wavelength of the equivalent pattern cover the whole image (that is, the equivalent interferometric pattern contains only a single fringe), and hence they are not yet able to solve the problem of absolute phase map recovery in FPP.
In order to remedy the phase unwrapping problem in FPP described above, the authors of this paper developed a novel approach to recover the absolute phase maps of two image patterns with selected frequencies [18]. Examples were presented to show that both of the two frequencies can be high enough for the applications of FPP. However, a number of issues are still outstanding associated with the proposed technique in [18], namely, the basic rules to select the frequencies and anti-noise capability of the proposed technique, that is, the phase error bound that ensures the correct the recovered absolute phase recovery. This paper aims to address these two important issues with the aim to provide a complete solution for the implementation of the proposed technique in [18].
This paper is organized as follows. In Section 2 we firstly present a brief review of the technique in [18], and then analyze the principle for frequency selection. In Section 3, the phase error bound is given. In Section 4, experiments are presented to validate the principle on frequency selection and the phase error bound. Section 5 concludes the paper.
2. Selection of the two frequencies
2.1 The technique proposed in [18]
With the approach proposed in [18], two fringe patterns with normalized spatial frequencies and respectively are projected onto the surface of an object, where and are positive integer numbers representing the total number of fringes on the respective patterns. Let us assume that and that the intensity of two fringe patterns varies in sinusoidal manner in -direction. We have [18]:
where, which is the pixel index in the horizontal direction and T is the total number of pixels. and are the absolute phase maps to be recovered, and are the wrapped phase maps associated with the two fringe patterns with frequencies and respectively. As and , and , the task of phase unwrapping is to determine the two integers and , and , where denotes the operation to take the largest integer which is not bigger than .In the proposed technique in [18], we introduced an intermediate variable , denoting the absolute phase map when . varies from to monotonically with respect to . and are related to as follows:
The relations between and , are displayed in Eq. (4)-(5).Equation (4a) and (4b) give all the possible combinations of (,) when x varies from 1 to T. With selection of and, will be integer which will enable us to have a unique map relationship between and a pair (,) [18]. Therefore, for a given x, we will have the value of , and then the two absolute phases can be recovered by Eq. (1), where (,) can be determined by minimizing the following with respect to all the possible pair of (,) as defined by Eq. (4a) and (4b):
The operational principle of the proposed technique can also be explained graphically using an example where and . Figure 1 shows the relationship among three absolute phase maps , and . Figure 2 show how and varies over x, and Fig. 3 show how changes with x. It is seem that only takes integer values, and it switches its value when either of and experiences a sudden change due to the phase wrapping. It is seen that as long as all the steps in exhibits different height, (,) can be determined and hence and can be recovered.
2.2 Principle of frequency pair selection
The validity of the approach proposed in [18] relies on the existence of unique mapping from to a pair of and. That is, and must be selected so that such a unique mapping relationship is held.
In order to achieve the above, let us firstly look at the relationship between and . From Eq. (4), the range of can be divided into intervals, and the values of on interval boundaries are where . On each of the intervals takes a different value. Similarly, Eq. (5) shows that the range of can also be divided into intervals, the values of on interval boundaries are where . On each of the intervals takes a different value.
When and are coprime, it is easy to show that ( and will not be coprime otherwise). Hence we can say that the interval boundaries of the two types of intervals will not coincide. These two types of boundaries together can divide the range of into intervals:
Each of the intervals must correspond to an unique pair . As varies from to monotonically, these intervals on will correspond to the same number of intervals on , denoted by . Obviously, each of will also correspond to a unique pair. In summary of the above, we have the following:Statement 1: If and are selected to be coprime, both of the two phase maps can be divided into strips based on the intervals . Each of the strips on the phase maps corresponds to a unique pair , which can be used to recover the absolute phases.
The above statement shows when and to be coprime, there exists a unique solution for the phase unwrapping problem. In order to show that the proposed approach in [18] is sufficient to work out the solution, we should also have the following:
Statement 2: When and is coprime, for any two different intervals , and ,we must have two corresponding pairs of based on Statement 1, which also meet the following:
In other words, there exists a unique mapping from to (that is, ) .We prove the Statement 2 by reductio ad absurdam. There are three possible scenarios making the two pairs of different: (a) and , (b) and , and (c) and . Without loss of generality let us discuss the first case where and . Assume that the following is valid:
Equation (7) can be rewritten as:Asand are coprime, Eq. (8) must be equivalent to the following:where is an integer and.Considering the ranges of and given above, we have , , and , so:
Comparing Eq. (9) with Eq. (10), it is obvious that . Hence we have
Looking at Eq. (10) again, when Eq. (11) is held, we must have:
Equation (12) implies that and are both even numbers, which is contradict to the fact that and are coprime. Hence Eq. (7) will not be true for the case (a) and , thus we have the following and also Statement 2:For the case (b) and , and (c) and , it is obvious that Eq. (13) will be held.
Combining Statements 1 and 2, we are able to propose the following for selection of the two frequencies and for the technique proposed in [18]:
Statement 3: If andare coprime, there existing a unique mapping from (that is, ) to , which will enable us to determine in order to recover the two absolute phases using the technique proposed in [18].
3. Phase error bound
In the proposed technique [18], after calculating , we need to round the calculated to the closest integer, then using Eq. (5) to find the corresponding and . However, when and is corrupted by unwanted noises or distortion, may be rounded to a wrong value of , resulting in errors in the recovered absolute phase maps. In this section we will study the performance of the proposed technique in [16] in terms of its anti-error capability.
The anti-error capability of the proposed technique depends on the gaps between any two possible values of . The larger the gap, the more unlikely the error will occur due to the rounding operation. Hence we need to find out the smallest gap between two values of , and we should also work out the relationship between the phase error in (,) and the smallest gap, which will yield the anti-noise capability of the technique in [16].
The smallest gap can be determined by the range of and the number of gaps. As indicated by Eq. (2), we can evaluate to work out the range of . In order to figure out the range of , we need to know all the possible pairs of and .
As shown by Eq. (4) and Eq. (5), for a particular value of , spans over a range of , and similarly for a particular value of , cover a range of . When, the associated with a particular will span two or more intervals of with respect to different values. Also for a given (), the largest value of corresponds to the case when takes the largest possible value.
For a given , falls in . Within the same range of , the largest possible can be obtained as follows:
where , is the upper bound of for the given . Based on the above, the largest for the given is bounded by:According to Eq. (14), we have:
So we have the upper bound of for a given as follows:Similarly, we can obtain the minimal value of for a given as follows:
where , which is the lower bound of for the given . Based on above, the smallest for the given is:According to Eq. (18), we have:
So we have the lower bound of for a given as follows:Combining Eq. (17) and Eq. (21) we have:From Eq. (2) and Eq. (22) we have:The number of value gaps is determined by the number of different values in . By Eq. (6) and Statement 3, when and are coprime, the number of values in is:
So the number of value gaps is:From Eq. (23) and Eq. (24), the average value gap of is obtained as follows:
Since the values of are integers, the minimal value gap between the values of is 1.If an error in exceeds 0.5, an error will occur when rounding into an integer. In other words, error in must not exceed 0.5 if we want to round into a correct integer. Assuming phase errors in the wrapped phase maps and are and respectively, we have:
Let, from Eq. (26) we can find the upper bound of the allowable phase error:The above gives the upper bound of with which the absolute phase maps can be correctly recovered. In other words, if is given, we should select the two frequencies to meeting the following:If maximal phase error is larger than , mistakes will occur in determining the correct (, ). The phase error and are mainly resulted from the noise (uncertainty) and non-linear distortion of the fringe pattern projection and capture system. According to the theoretical analysis and experiment results given in [19,20], phase error can be reduced by increasing the number of steps of PSP. Hence in practice we can make and in order to determine (, ) correctly using the approach in [18].
4. Experiment
In order to validate the proposed rules for frequency selection, experiments have been carried out on absolute phase maps recovery for two frequencies and. The camera in the experiment is DuncanTech MS3100 high resolution 3CCD camera, the projector is Hitachi CP-X260 Multimedia LCD Projector. Fringe patterns with and are projected onto a plaster hand model as the object, and the deformed fringe patterns are shown in Fig. 3 (a) and 3(b). The vertical (y-direction) resolution of pattern image is 1392, the horizontal (x-direction) is 1038.
We firstly used the six-step Phase Shifting Profilometry (PSP) to obtain the wrapped phase maps, which are depicted in Fig. 3 (c) and 3(d). By measuring Fig. 3 (c) and 3(d) we found that is about in this experiment. Since and are coprime,, the requirements of Statement 3 and Eq. (27) are met and hence the absolute phase maps can be recovered from the wrapped ones, as shown by Fig. 3(e) and 3(f). Also, the results for three dimensional reconstruction in Fig. 3(k) and 3(l) also demonstrate that the proposed algorithm is able to recover the absolute phase maps.
Then we obtained another set of wrapped phase maps in Fig. 3(g) and 3(h). As we did not apply any correction and calibration, the wrapped phase maps are corrupted by nonlinear distortion with being about . In this case, , according to Eq. (27), error will occur in absolute phase maps recovery, which is confirmed by Fig. 3(g) and 3(j).
The above can be further confirmed looking at the recovered absolute phases on a section for y = 800. The results are shown in Fig. 4 which clearly demonstrates that absolute phases can be recovered from the wrapped ones obtained by six-step PSP, and that errors occur for the recovery of the phase maps obtained from three-step PSP.
We also carried out experiments to validate the effectiveness of our proposed rules for the object surface with steps. The object is a plane with a step of 72mm high. Fringe patterns with and are projected onto the object and the deformed fringe patterns are shown in Fig. 4(a) and 4(b). The resolution of image pattern is the same as Fig. 3, and the horizontal length of the image is 315mm. The distance between the camera and reference plane is 1200mm, the distance between the camera and projector is 300mm.
We found that the average phase jumping on section x = 240 is 5.75, so the average step height is obtained as 72.28mm. The average phase different on section x = 120 is 5.76, and so the average step height is 71.96mm. This result shows that our proposed technique can also determine the absolute phase maps when the objects are with steps.
In order to compare with the existing two-frequency temporal phase unwrapping algorithms, we also implemented the phase unwrapping technique in Eq. (37) in [6]. Under the same experimental conditions, one of the fringe patterns has the unit frequency (i.e., only one fringe on the pattern), and the other has the spatial frequency 15. These two fringe patterns are projected onto the same plaster hand model, and the phase maps are obtained by six-step PSP algorithm. The experiment results are depicted in Fig. 6 and Fig. 7 gives the absolute phase map on section y = 800 of the Fig. 6(e). Comparing the recovered phase map in Fig. 6 (e) with Fig. 3(e) and 3(f), it is clear that errors are observed in Fig. 6 (e) and Fig. 7. By looking at Fig. 6 (a), we find that the maximal phase error of phase map on unit frequency is about , which is bigger than , the threshold set Eq. (27) for correct absolute phase recovery. Note that such a large phase error is reasonable as the lower the frequency, the higher the phase noise [3,8], and such a large phase error in the wrapped unit frequency phase map has led to miscounting of the fringe orders and errors in absolute phase recovery. Looking into the results in Fig. 3 again, use of frequencies 8 and 15 enjoys the maximal phase error , and hence meets the requirement of Eq. (29), thus enabling correct phase recovery by means of the proposed technique in [18].
5. Conclusion
We presented a guideline to select the frequencies of the two fringe patterns using the proposed technique in [18]. It is shown that when the two frequencies are coprime, the technique in [18] can be employed to recover the absolute phase maps. The anti-error ability of the proposed technique in [18] has also been investigated. We have shown that when the two frequencies and are given, the maximal allowable phase error is for accurate phase map recovery. In other words, if we know the maximal phase error , and should be selected in such a way that . These guidelines have been confirmed by experiments. With the guidelines presented in this paper, we are able to select the two frequencies and implement the proposed technique in [18] for various applications.
References and links
1. S. Zhang, X. Li, and S. T. Yau, “Multilevel quality-guided phase unwrapping algorithm for real-time three-dimensional shape reconstruction,” Appl. Opt. 46(1), 50–57 (2007). [CrossRef] [PubMed]
2. J. M. Huntley and H. O. Saldner, “Temporal phase-unwrapping algorithm for automated interferogram analysis,” Appl. Opt. 32(17), 3047–3052 (1993). [CrossRef] [PubMed]
3. H. Zhao, W. Chen, and Y. Tan, “Phase-unwrapping algorithm for the measurement of three-dimensional object shapes,” Appl. Opt. 33(20), 4497–4500 (1994). [CrossRef] [PubMed]
4. H. J. Chen, J. Zhang, D. J. Lv, and J. Fang, “3-D shape measurement by composite pattern projection and hybrid processing,” Opt. Express 15(19), 12318–12330 (2007). [CrossRef] [PubMed]
5. J. L. Li, H. J. Su, and X. Y. Su, “Two-frequency grating used in phase-measuring profilometry,” Appl. Opt. 36(1), 277–280 (1997). [CrossRef] [PubMed]
6. J. Li, L. G. Hassebrook, and C. Guan, “Optimized two-frequency phase-measuring-profilometry light-sensor temporal-noise sensitivity,” J. Opt. Soc. Am. A 20(1), 106–115 (2003). [CrossRef] [PubMed]
7. K. Liu, Y. Wang, D. L. Lau, Q. Hao, and L. G. Hassebrook, “Dual-frequency pattern scheme for high-speed 3-D shape measurement,” Opt. Express 18(5), 5229–5244 (2010). [CrossRef] [PubMed]
8. S. Zhang, “Phase unwrapping error reduction framework for a multiple-wavelength phase-shifting algorithm,” Opt. Eng. 48(10), 105601 (2009). [CrossRef] [PubMed]
9. J. M. Huntley and H. O. Saldner, “Error-reduction methods for shape measurement by temporal phase unwrapping,” J. Opt. Soc. Am. A 14(12), 3188–3196 (1997). [CrossRef]
10. H. O. Saldner and J. M. Huntley, “Temporal phase unwrapping: application to surface profiling of discontinuous objects,” Appl. Opt. 36(13), 2770–2775 (1997). [CrossRef] [PubMed]
11. S. Zhang, “Digital multiple-wavelength phase-shifting algorithm,” Proc. SPIE 7432, 74320N, 74320N-11 (2009). [CrossRef]
12. C. E. Towers, D. P. Towers, and J. D. C. Jones, “Absolute fringe order calculation using optimisied multi-frequency selection in full-filed profilometry,” Opt. Lasers Eng. 43(7), 788–800 (2005). [CrossRef]
13. J. C. Wyant, “Testing aspherics using two-wavelength holography,” Appl. Opt. 10(9), 2113–2118 (1971). [CrossRef] [PubMed]
14. C. Polhemus, “Two-wavelength interferometry,” Appl. Opt. 12(9), 2071–2074 (1973). [CrossRef] [PubMed]
15. Y.-Y. Cheng and J. C. Wyant, “Two-wavelength phase shifting interferometry,” Appl. Opt. 23(24), 4539–4543 (1984). [CrossRef] [PubMed]
16. K. Creath, “Step height measurement using two-wavelength phase-shifting interferometry,” Appl. Opt. 26(14), 2810–2816 (1987). [CrossRef] [PubMed]
17. K. Houairi and F. Cassaing, “Two-wavelength interferometry: extended range and accurate optical path difference analytical estimator,” J. Opt. Soc. Am. A 26(12), 2503–2511 (2009). [CrossRef] [PubMed]
18. Y. Ding, J. Xi, Y. Yu, and J. Chicharo, “Recovering the absolute phase maps of two fringe patterns with selected frequencies,” Opt. Lett. 36(13), 2518–2520 (2011). [CrossRef] [PubMed]
19. K. Liu, Y. Wang, D. L. Lau, Q. Hao, and L. G. Hassebrook, “Gamma model and its analysis for phase measuring profilometry,” J. Opt. Soc. Am. A 27(3), 553–562 (2010). [CrossRef] [PubMed]
20. Y. Wang, K. Liu, Q. Hao, X. Wang, D. L. Lau, and L. G. Hassebrook, “Robust active stereo vision using Kullback-Leibler divergence,” IEEE Trans. Pattern Anal. Mach. Intell. 34(3), 548–563 (2012). [CrossRef] [PubMed]