
- Chinese Optics Letters
- Vol. 22, Issue 6, 061201 (2024)
Abstract
Keywords
1. Introduction
In phase-shifting profilometry (PSP)[1–4], a highly linear intensity response projector, such as digital light processor (DLP), will increase the hardware cost. However, for an ordinary projector, in order to improve the visual effect of human eyes on the projector pattern, the ordinary projector has carried out gamma transformation. For example, the gamma transformation value recommended by the National Television System Committee (NTSC) of the United States is 2.2. The gamma transformation of the projector makes the fringe gray distribution non-sinusoidal. Furthermore, the second-order and third-order nonlinear responses of the charged coupled device (CCD) camera also make the fringe gray distribution non-sinusoidal. In conclusion, the nonlinear response of the measurement system leads to the phase error[5,6].
Recently, many state-of-the-art methods have been proposed. They can be divided into seven categories. (1) Perform photometric calibration of the projector in advance to obtain the input-output response curve of the projector, thereby generating corrected projection fringe[7]. (2) Establish the projector gamma mathematical model and use this model to correct the projection fringe[8,9]. (3) Pre-establish the phase error look-up table and compensate the phase error according to the look-up table[10,11]. (4) Use Hilbert transform to correct the phase error caused by the nonlinear effect[12]. (5) Use an iterative algorithm to correct the phase error caused by the nonlinear effect[13]. (6) Use the nonlinearity-induced phase error self-correction algorithm[14]. (7) The non-sinusoidal fringes are expressed by a high-order Fourier series, and then the phase error model introduced by the non-sinusoidal fringe is established by projecting a set of additional fringe sequences to generate the opposite phase error and fusing the two phases to correct the phase error. This method is referred to as the double
Huang et al.[17] proposed a double 3-step phase-shifting (PS) method. Although the double 3-step PS methods are simple and effective, they need to add an additional set of fringe sequences, which reduces the measurement efficiency. In this paper, we propose a generic self-correction method for nonlinearity-induced phase error (GSCN) in 3-step PSP. First, according to the nonlinearity-induced phase error model, we introduce an additional phase from the perspective of compensating the phase error. Then, we introduce an algorithm to shift the additional phase by
Sign up for Chinese Optics Letters TOC. Get the latest issue of Chinese Optics Letters delivered right to you!Sign up now
2. Principle
If the intensity response of the measurement system is ideally linear, then the intensity of the ideal captured fringe pattern based on
However, the nonlinear response of the ordinary projector and camera leads to the non-sinusoidal gray distribution of the captured fringe, and the intensity of the actual captured fringe pattern can be expressed by a high-order Fourier series[12],
Generally, higher harmonics above the fifth order have very little influence on the phase calculation[7,8]. For the 3-step PS, after omitting the pixel coordinates, Eq. (3) can be rewritten as
According to Eqs. (2) and (4), the real wrapped phase (
The ideal wrapped phase (
The phase error introduced by the nonlinear intensity response of the measurement system is [see Supplement 2 to view the detailed calculation process of Eq. (7)]
Since the coefficient
The opposite phase error relative to Eq. (8) is
The captured fringe patterns based on 3-step PS are
According to Eqs. (2) and (10), the wrapped phase
According to Eq. (9), we need to further get
Further, we can get
The additional wrapped phase
A fringe pattern of the measured object is shown in Fig. 1(a). According to Eqs. (11) and (15), the original wrapped phase
Figure 1.Illustration of the additional wrapped phase translation and phase error correction. (a) Captured fringe. (b) Original wrapped phase ϕ. (c) Additional wrapped phase ϕA. (d) Cross sections in panels (b) and (c). (e) Generation of ϕS, ϕA-S, and ϕF.
Step 1: For the wrapped phase of the
Step 2: When calculating the pixel offset
Figure 2.Two situations that induce a line of wrapped phase to fail to calculate S. (a) ϕA has one more phase jump than ϕ. (b) ϕ has one more phase jump than ϕA.
Step 3: For the wrapped phase of the
Step 4: We repeat Steps 1 to 3 and take the mean value of all
3. Experiments
To validate the effectiveness of the proposed method, we constructed a three-dimensional (3D) measurement system and conducted comparative experiments. The 3D measurement system included a projector with a resolution of
In the first experiment, we used the fox mask in Fig. 1(a) as the measured object. The reconstructed results using the traditional 3-step PS method and the proposed GSCN method are shown in Figs. 3(a) and 3(b), respectively. It is evident that Fig. 3(a) exhibits a significant amount of dense ripples on the 3D surface shape, whereas Fig. 3(b) shows a smoother result. To further evaluate the error correction performance of the proposed method, Fig. 3(c) compares the cross sections of the red line segment in Fig. 3(a) with Fig. 3(b), while Fig. 3(d) provides a detailed view of Fig. 3(c). In Fig. 3(d), there are significant periodic errors in the phase from using the traditional 3-step PS method, while the periodic error using the proposed GSCN method is significantly suppressed. Further quantitative comparison results will be provided in the two experiments in Figs. 6 and 7.
Figure 3.3D reconstruction results of the fox mask. (a) Traditional 3-step PS method. (b) Proposed GSCN method. (c) Comparison of the cross sections of the reconstruction results. (d) Close-up of the cross sections.
The second experiment used a Venus statue as the measured object. Figures 4(a)–4(c) show the captured deformed fringe patterns, the wrapped phase obtained by the 3-step PS method, and the wrapped phase obtained by the proposed GSCN method, respectively. Figure 4(d) presents a comparison between a segment of the wrapped phase taken from the red line position in Figs. 4(b) and 4(c). Figure 4(e) presents the result of the pixel shifting and fusing of the two shifted wrapped phases, where the fused wrapped phase no longer exhibits periodic fluctuations. Figures 4(f) and 4(g) show the 3D reconstructed surfaces using the 3-step PS method and its self-corrected result, respectively. The self-corrected 3D surface no longer exhibits ripples and is closer to the ground truth. Figure 4(h) compares a cross section of the red line position in Fig. 4(f) with the corresponding section in Figs. 4(g) and 4(i) providing a close-up view. The proposed GSCN method effectively reduces the influence of the system nonlinearity and significantly improves the reconstruction accuracy.
Figure 4.3D reconstruction results of the Venus statue. (a) Deformed fringe patterns. (b) Original wrapped phase ϕ. (c) Additional wrapped phase ϕA. (d) Comparison of a section of the wrapped phase ϕ and ϕA. (e) Generation of ϕS, ϕA-S, and ϕF. (f) 3-step PS method. (g) Proposed GSCN method. (h) Cross-section comparison of the reconstruction results. (i) Close-up of the cross section.
As shown in Fig. 5(a), in order to confirm the effectiveness of the proposed GSCN method on the specimen with a stepped surface, we used a dental cast as the measured object. Figure 5(b) shows a captured fringe pattern. Figures 5(c) and 5(d) show the 3D reconstructed surfaces using the 3-step PS method and proposed GSCN method, respectively. We extract a row of step surfaces from Figs. 5(c) and 5(d) for comparison, that is, we extract the cross sections of the red dashed lines from Figs. 5(c) and 5(d) to obtain Fig. 5(e). It can be seen from Fig. 5(e) that the proposed GSCN method is also effective for step surfaces. For a more detailed comparison, we further enlarged the local area of Fig. 5(e) to obtain Fig. 5(f), and it can be seen that the proposed GSCN method greatly reduces the system nonlinearity-induced phase errors.
Figure 5.3D reconstruction results of the dental cast. (a) Dental cast with stepped surfaces. (b) Captured fringe pattern. (c) Traditional 3-step PS method. (d) Proposed GSCN method. (e) Comparison of the cross sections of the reconstruction results. (f) Close-up of the cross sections.
To further compare the reconstruction accuracy between the proposed GSCN method and other existing methods, we used two isolated complex objects (David statue and dental cast) as the measured object. Figure 6(a) shows the captured deformed fringe pattern, and Fig. 6(b) shows the fused wrapped phase (
Figure 6.3D reconstruction results of the David statue and dental cast. (a) Deformed fringe patterns. (b) Fused wrapped phase. (c) Wrapped phase comparison. (d) 3-step PS method. (e) Proposed GSCN method. (f) Hilbert transform method. (g) Double 3-step PS method. (h) 12-step PS method. (i) Phase errors of the four methods.
By comparing Figs. 6(d) and 6(e), it is evident that the proposed method effectively eliminates the wrinkles on the surfaces of the David statue and dental cast, indicating its good error correction performance for complex objects. The reconstructed surfaces in Figs. 6(f)–6(h) no longer exhibit pronounced water ripples. However, the reconstruction surface obtained using the Hilbert transform method shows some holes. This is attributed to the Hilbert transform’s sensitivity to shadows and height changes, resulting in significant errors in the additional wrapped phase and subsequently causing the appearance of holes in the reconstructed surface. We take the phase cross section using the two-step PS method as the ground truth and obtain the phase errors of each method shown in Fig. 6(i). It can be seen that the cross section from the traditional 3-step PS method not only exhibits the largest phase error but also has strong fluctuations. The differences among the proposed method, the Hilbert transform method, and the double 3-step PS method are less pronounced.
To further quantitatively compare the reconstruction accuracy of different methods for this experiment, we used the reconstruction result obtained from the 12-step phase-shifting method as the ground truth. We then calculated the root mean squared error (RMSE), mean absolute error (MAE), and largest error (LE) for each method. The results are shown in Table 1.
Approach | 3-step | Proposed | Double 3-step | Hilbert |
---|---|---|---|---|
RMSE | 0.1557 | 0.0559 | 0.0416 | 0.0645 |
MAE | 0.4176 | 0.1413 | 0.0786 | 0.1216 |
LE | 0.4833 | 0.2909 | 3.3836 | 3.3382 |
Table 1. Phase Error Comparison of the Elephant Model (in rad)
The proposed GSCN method has lower RMSE, MEA, and LE compared to the traditional 3-step phase-shifting method. Additionally, the RMSE and LE of the proposed GSCN method are lower than those of the Hilbert transform method. Taking the comparison of the RMSE as an example, the RMSE of the proposed method is 64.1% lower than that of the traditional method and 13.3% lower than that of the Hilbert transform method. It is worth noting that both the Hilbert transform method and the double 3-step phase-shifting method have significantly larger largest errors compared to the proposed self-correction method. This discrepancy can be attributed to the errors introduced by the additional wrapped phase in the Hilbert transform and the double 3-step phase-shifting methods. On the other hand, the additional wrapped phase in the proposed method is calculated directly from the original fringe patterns, enabling it to resist noise and other disturbances with the same capability as the original wrapped phase. It is worth noting that the running cost of the proposed method has slightly increased. The running times of the traditional 3-step phase-shifting method, the double 3-step phase-shifting method, and the proposed algorithm are approximately 1.023 s, 2.058 s, and 2.419 s, respectively. The running cost of the proposed algorithm has increased by 17.5% compared to that of the double 3-step phase-shifting method. In the future, the graphics processing unit (GPU) can be further adopted to accelerate image processing speed and reduce the running cost of the proposed algorithm.
Last, we conducted a 3D surface reconstruction of a Rui-Shou mask, as shown in Fig. 7(a). Figure 7(b) shows the captured fringe pattern and Fig. 7(c) shows the result of the Hilbert transform applied to Fig. 7(b). A comparison is made by selecting a segment of intensity at the positions indicated by the red and blue lines in Figs. 7(b) and 7(c), as shown in Fig. 7(d). The blue line represents the intensity of Fig. 7(b), while the red line represents the intensity of Fig. 7(c). By comparing them, it can be seen that the blue line has a phase shift of
Figure 7.Reconstruction results of the Rui-Shou mask. (a) Real image. (b) Deformation fringe pattern. (c) Hilbert transform result of (a). (d) Intensity comparison. (e) Reconstruction result using the 12-step phase-shifting method. (f) Reconstruction result using the 3-step phase-shifting method. (g) Reconstruction result using the proposed method. (h) Reconstruction result using the Hilbert transform method.
We also conducted quantitative comparisons for this experiment. By using the reconstruction results obtained with the 12-step phase-shifting method as the ground truth, we calculated the MAE, LE, and RMSE, as shown in Table 2. The proposed method achieved a lower RMSE compared to the Hilbert transform method, indicating higher accuracy of the proposed method. Furthermore, the maximum error of the Hilbert transform method was significantly larger than that of the 3-step phase-shifting method and the proposed method, consistent with the analysis mentioned above.
Method | MAE | LE | RMSE |
---|---|---|---|
3-step | 0.4131 | 0.5408 | 0.1592 |
Proposed | 0.1192 | 0.3142 | 0.0480 |
Hilbert | 0.1161 | 3.2662 | 0.0642 |
Table 2. Phase Error Comparison of the Rui-Shou Mask (in rad)
The proposed GSCN method is effective for both objects with continuous surfaces and objects with step surfaces, but it has the following noteworthy issues.
4. Conclusion
In this paper, we propose a generic and flexible self-correction method for nonlinearity-induced phase error in phase-shifting profilometry. Based on the application of the 3-step PSP, the proposed method can accurately compensate for the nonlinearity-induced phase error in any 3D measurement system. The contribution and novelty of the proposed method include the following. (1) The proposed method only requires a little extra program to perform the phase error compensation automatically and flexibly, without needing additional fringe patterns or pre-operation. (2) The proposed method is not affected by the 3D measurement system and its parameters and has good universality for different 3D measurement system. (3) The proposed method is simple and easy to implement. (4) The proposed method does not require any additional fringes or hardware assistance and can be easily extended to 4-step or 5-step PSP. When the ordinary projector is used in the 3D measurement to improve the price advantage, the proposed method in this work has potential for application.
References

Set citation alerts for the article
Please enter your email address