Open Access
24 September 2014 Phase error elimination considering gamma nonlinearity, system vibration, and noise for fringe projection profilometry
Jun Yao, Xiong Chen, Yihao Zhou, Hong Miao, Jubing Chen
Author Affiliations +
Abstract
Fringe projection profilometry (FPP) using a digital video projector is widely used for three-dimensional shape measurement. However, the gamma nonlinearity, system vibration, and noise cause the captured fringe patterns to be nonsinusoidal waveforms and have a grayscale deflection from their true value. This leads to an additional phase measurement error for a general phase-shifting algorithm. Based on the theoretical analysis, we propose a method to eliminate the phase error considering two factors. In this method, four-step phase-shifting is done four times with an initial phase offset of 22.5 deg and the average of these four phase maps precisely results in the real phase. As a result, phase error caused by gamma nonlinearity can be effectively suppressed. In addition, every image in phase shifting is replaced by the average of 20 fringe images continuously captured at the same state to avoid the phase error caused by system vibration and noise. Experimental results show that this method is effective in eliminating the phase error in practical phase-shifting FPP. In general, more than 90% of the phase error can be reduced.

1.

Introduction

Fringe projection profilometry (FPP) using a digital video projector is one of the most common and effective techniques in fast three-dimesnional (3-D) shape measurement for its low cost, high reliability, high accuracy, and fast speed. It has been widely used in many fields, including biomedical applications,1 human body shape measurement,2 reverse engineering,3 and quality control.4 For phase-shifting methods, a series of sinusoidal fringe patterns generated by the computer are projected on to the object and captured by the camera. Then, the phase distribution that contains the object’s height information is calculated by analysis of the images. Thus, the object shape is reconstructed through phase unwrapping and system calibration.5

However, the commercial projector device used in an FPP system is manufactured to be nonlinear for a better visual effect. The nonlinearity of the projector deforms the ideal sinusoidal fringe patterns to be nonsinusoidal and introduces phase error. This phase error is one dominant error source of measurement because the phase-shift error does not exist because of the digital fringe pattern generation nature.6 For accurate measurement, this kind of phase error is not desirable. Recently, many research efforts have been focused on mitigating the nonsinusoidal phase error to obtain better measurement accuracy. Huang et al. proposed a double three-step phase-shifting algorithm and the error level has been reduced to less than half.7 Pan et al. presented an iterative method and simplified phase error to one order.8 Guo et al. have proposed a gamma-correction technique on the basis of statistical analysis of the fringe images. This technique allows one to estimate the value of gamma from the normalized cumulative histogram.9 However, their phase-error models are too simple to represent the actual gamma effect. Zhang and Yau utilized a look-up-table to alleviate the phase error.6 Liu et al. developed a method based on their model of the harmonic coefficients of the gamma value.10 The method works well for their purpose. However, it is time consuming to calibrate the gamma value. Besides of the gamma nonlinearity, system vibration and noise are nonnegligible. As the system vibration and noise exist, the captured images have a grayscale deflection from the true value and this will introduce a significant error to the result. In this paper, a method is proposed to reduce the phase error considering the system vibration, noise, and gamma nonlinearity. In this method, four-step phase-shifting is done four times with an initial phase offset of 22.5 deg and four phase maps are averaged to reduce the phase error introduced by the gamma nonlinearity. Every phase-shifting image is replaced by the average of multiple fringe images captured continuously at the same state to eliminate the phase error caused by system vibration and noise. Experimental results show that this method can effectively eliminate the measurement error.

In Sec. 2 a detailed phase error analysis is performed. The proposed phase error elimination method is discussed in Sec. 3. Section 4 shows the experimental results, and the conclusions are given in Sec. 5.

2.

Phase Error Analysis

2.1.

System Vibration and Noise

In the phase-shifting method, a series of phase-shifted fringe images are used to calculate the phase. However, the grayscale of the captured images deviate from the true value because of the system vibration and noise. For example, if we capture two fringe images of one object with a time interval of 0.5 s. Due to system vibration and noise, these two images are not exactly the same. Figure 1(a) shows the grayscale difference between them and the histogram is plotted in Fig. 1(b) The maximum value of the grayscale difference is 20. It is obvious that both these two captured images could not represent the real situation. As a consequence, phase error will occur in the next phase-shifting calculation using these images.

Fig. 1

(a) Grayscale difference. (b) Histogram of grayscale difference.

OE_53_9_094102_f001.png

2.2.

Gamma Nonlinearity

Typically, the ideal intensity of a projected fringe pattern, regardless of the gamma nonlinearity, is expressed as

Eq. (1)

Inp=Ap+Bpcos(ϕp+δn),
where Ap is the background intensity, Bp is the intensity modulation, ϕp=2πfx is the user defined phase for each pixel, f is the fringe frequency, δn=2πn/N represents the phase-shift value, n is the index, and N is the number of phase-shifted patterns. Without considering gamma, the intensity of the captured image could be expressed as

Eq. (2)

Inc=Ac+Bccos(ϕ+δn).

The desired phase information can be solved according to Eq. (2)

Eq. (3)

ϕ=arctann=0N1Incsin(δn)n=0N1Inccos(δn).

Then, the 3-D coordinates of the object can be derived through triangulation with the projector.1113

If there exists gamma distortion in the FPP system, the intensity of the captured image will be nonsinusoidal, and the computation for ϕ will not be accurate using Eq. (3). Figures 2 and 3 show the simulation results.

Fig. 2

Ideal sinusoidal fringe (blue line) and actual nonsinusoidal fringe (red line).

OE_53_9_094102_f002.png

Fig. 3

Ideal phase (blue line) and real phase using Eq. (3) (red line).

OE_53_9_094102_f003.png

The intensity of the captured nonsinusoidal fringe pattern could be expressed as

Eq. (4)

In,cγ=α[M+Ncos(ϕ+δn)]γ,
where the term α is a modulation constant controlling the intensity range, γ is the gamma value for the projector-camera pair, δn is the phase-shift value, ϕ is the phase information, and M and N are the normalized average intensity and intensity modulation, respectively, which are related to the factors including reflectivity, uncertain ambient light, sensitive constant of the camera, and gamma value of the projector. Equation (4) can be rewritten as

Eq. (5)

In,cγ=αMγ[1+pcos(ϕ+δn)]γ,
where p=N/M is the ratio of the intensity modulation to average intensity. Subsequently, the binomial series (1+x)t=m=0[(t/m)xm] is applied to Eq. (5) whether γ is an integer or not, so that it is expressed as

Eq. (6)

In,cγ=αMγm=0[(γm)pmcosm(ϕ+δn)].

According to the cosine power equations, Eq. (6) can be expressed as

Eq. (7)

In,cγ=A+k=1Bkcos[k(ϕ+δn)],

Eq. (8)

Bk=2Mγm=0bk,m,A=0.5B0.

In addition,

Eq. (9)

bk,m=(0.5p)2m+k(γ2m+k)(2m+km),
where k is a non-negative integer.

To accurately analyze the phase error, the harmonic waves up to the eighth-order are considered (k=8), because the components of the harmonic waves higher than eighth-order are small enough and can be ignored. For the four-step phase-shifting method (n=14), the phase error can be derived from Eq. (7) as14

Eq. (10)

Δϕ=arctanqsin4ϕrsin4ϕ+ssin8ϕ1+qcos4ϕ+rcos4ϕ+scos8ϕ,
where q=B3/B1, r=B5/B1, and s=B7/B1. Writing the Taylor expansion of Eq. (10) around q, r, s=0 we obtain

Eq. (11)

Δϕ(q+r+rs)sin4ϕ+(q22r22s)sin8ϕ+qssin12ϕ+s22sin16ϕ.

Since rq, sq, r and s can be ignored. Equation (11) is simplified as

Eq. (12)

Δϕqsin4ϕ+q22sin8ϕ.

We note that the phase error is determined by the phase and the ratio q.

3.

Phase Error Elimination Method

Based on the analysis in Sec. 2, it is easily found that the phase error consists of two parts. One is the system vibration and noise, and the other is the gamma nonlinearity. These two factors are independent of each other.

3.1.

For System Vibration and Noise

The phase error introduced by the system vibration and noise can be reduced significantly by replacing every phase-shifting image of the average of multiple images captured continuously at the same state. Figure 4 shows the relationship between the max grayscale deflection (MGD) and the number of images (N) averaged. The max grayscale deflection tapers off with an increase in the of number of averaged images. When N20, the MGD is less than 5. That means that the average of 20 images is enough to represent the real situation.

Fig. 4

Relationship between max grayscale deflection and number of averaged images.

OE_53_9_094102_f004.png

3.2.

For Gamma Nonlinearity

From the above phase error analysis in Sec. 2.2, we developed a novel algorithm for reducing the phase error introduced by gamma nonlinearity. From Eq. (12), we know that the phase error is determined by the phase ϕ and the parameter q. If we introduce an initial phase offset into the phase-shifted fringe patterns, the phase error will vary correspondingly. If we introduce three phase maps with initial phase offsets of 22.5, 45, 25deg, the phase error becomes

Eq. (13)

Δϕ=Δ(ϕ+22.5deg)=qsin4(ϕ+22.5deg)+q22sin8(ϕ+22.5deg)=qcos4ϕq22sin8ϕ,

Eq. (14)

Δϕ=Δ(ϕ+45deg)=qsin4(ϕ+45deg)+q22sin8(ϕ+45deg)=qsin4ϕ+q22sin8ϕ,

Eq. (15)

Δϕ=Δ(ϕ22.5deg)=qsin4(ϕ22.5deg)+q22sin8(ϕ22.5deg)=qcos4ϕq22sin8ϕ.

It is obvious that Δϕ+Δϕ+Δϕ+Δϕ=0. Therefore, if we average the four phase maps, the phase error caused by gamma nonlinearity will disappear.

4.

Experiments and Discussions

Our employed three-dimensional profile measurement system is composed of a Vivitek-D5185HD projector (Taiwan) and Baumer-TXG12 camera (Frauenfeld, Switzerland). The resolution ratio of the projector is 1920×1080 and the camera has a resolution of 1296×966.

To verify the effectiveness of the proposed method in reducing measurement errors, we measured a flat board pasted onto the wall. In our experiment, four-step phase-shifting is done four times with an initial phase offset of 225 deg. Table 1 shows the phase shift used each time. For each single phase-shifting fringe image, we continuously capture 20 images at the same state and average them. Figure 5 shows one of the captured fringe images and the result is shown in Fig. 6. Figure 6(a) shows the phase map using the general four-step phase-shifting algorithm. Figure 6(b) shows the phase map after compensation only for the system vibration and noise. Figure 6(c) is the phase map after compensation only for gamma nonlinearity. Figure 6(d) is the result considering both factors. The phase of a cross section (red line in Fig. 5) is shown in Fig. 7. Theoretically, the phase value of these pixels is supposed to be zero as there is no out-of-plane displacement here. Therefore, the phase value represents the phase error. Generally, we use the root-mean-square (RMS) value to evaluate the error. It can be seen that a serious phase error exists before any error elimination in Fig. 7(a). The RMS error is 0.0615 rad. As shown in Fig. 7(b), the RMS error reduces to 0.0121 rad after eliminating the phase error introduced by system vibration and noise. It is approximately five times smaller, which proves that the influence of system vibration and noise on phase error cannot be ignored. The RMS error reduces to 0.0183 rad, while the phase error caused by gamma nonlinearity is eliminated. When both the system vibration and noise and the gamma nonlinearity are considered, the RMS error decreases to 0.0043 rad, which is about 14 times smaller than the result using an ordinary phase-shifting algorithm. Table 2 compares the effectiveness of these four different algorithms. Figure 8 shows the 3-D shape of the blue rectangle area in Fig. 5. It is obvious that the surface of the flat plane is much smoother after phase error elimination.

Table 1

Phase shift in each time phase shifting.

Phase-shifting orderPhase shift
10 deg90 deg180 deg270 deg
2225 deg112.5 deg202.5 deg292.5 deg
345 deg135 deg225 deg315 deg
422.5deg67.5 deg157.5 deg247.5 deg

Fig. 5

Captured fringe image.

OE_53_9_094102_f005.png

Fig. 6

Phase distribution: (a) before any elimination. (b), (c) and (d) after error elimination.

OE_53_9_094102_f006.png

Fig. 7

Phase of a cross section: (a) before any elimination. (b), (c) and (d) after error elimination.

OE_53_9_094102_f007.png

Table 2

Phase error RMS value of four different algorithms.

AlgorithmRMSReduction
a0.0615
b0.012180.5%
c0.018370.3%
d0.004393.1%

Fig. 8

Three-dimensional (3-D) shape of the blue rectangle area in Fig. 5: (a) before any elimination. (b), (c), and (d) after error elimination.

OE_53_9_094102_f008.png

As a practical application of the proposed method, some more complex objects are measured, and one of the experimental results of a reconstructed face is shown in Fig. 9. Figure 9(a) gives the phase distribution of the object using an ordinary four-step phase-shifting algorithm. Figure 9(b) shows the phase distribution after phase error elimination using our proposed method. The 3-D shape maps of Figs. 9(a) and 9(b) are shown in Figs. 9(c) and 9(d). Figures 9(e) and 9(f) plot the data of one same cross section. It is obvious that the reconstructed face after phase error elimination is much smoother with well-retained details. The phase error elimination method proposed in this paper can effectively remove the periodical phase error due to gamma nonlinearity, system vibration, and noise and obtain a more accurate result with a better visual effect.

Fig. 9

Result of a reconstructed face: phase distribution (a) before and (b) after error elimination; (c) and (d) 3-D reconstruction results; (e) and (f) data of one cross section.

OE_53_9_094102_f009.png

5.

Conclusions

In this paper, we analyze the influence of system vibration and noise and gamma nonlinearity on phase error. It is proven that system vibration and noise will introduce grayscale deflection in fringe images and result in a nonnegligible phase error. This error can be eliminated by using the average of multiple fringes images continuously captured at the same state. On the basis of theoretical analysis, we proposed a novel algorithm by doing the four-step phase-shifting four time to eliminate the phase error caused by gamma nonlinearity. The effectiveness of the proposed method has been demonstrated by the experimental results. The phase error can be reduced at least 90%.

Acknowledgments

This research work is supported by National Natural Science Foundation of China, No. 11372182.

References

1. 

L.-C. ChenC.-C. Huang, “Miniaturized 3D surface profilometer using digital fringe projection,” Meas. Sci. Technol., 16 (5), 1061 –1062 (2005). http://dx.doi.org/10.1088/0957-0233/16/5/003 MSTCEP 0957-0233 Google Scholar

2. 

F. LilleyM. J. LalorD. R. Burton, “Robust fringe analysis system for human body shape measurement,” Opt. Eng., 39 (1), 187 –195 (2000). http://dx.doi.org/10.1117/1.602351 OPEGAR 0091-3286 Google Scholar

3. 

C.-h. Linet al., “Fringe projection measurement system in reverse engineering,” J. Shanghai Univ., 9 (2), 153 –158 (2005). http://dx.doi.org/10.1007/s11741-005-0069-z JSUNFV 1007-6417 Google Scholar

4. 

H.-N. YenD.-M. TsaiJ.-Y. Yang, “Full-field 3-D measurement of solder pastes using LCD-based phase shifting techniques,” IEEE Trans. Electron. Packag. Manuf., 29 (1), 50 –57 (2006). http://dx.doi.org/10.1109/TEPM.2005.862632 ITEPFL 1521-334X Google Scholar

5. 

V. SrinivasanH. LiuM. Halioua, “Automated phase-measuring profilometry of 3-D diffuse objects,” Appl. Opt., 23 (18), 3105 –3108 (1984). http://dx.doi.org/10.1364/AO.23.003105 APOPAI 0003-6935 Google Scholar

6. 

S. ZhangS.-T. Yau, “Generic nonsinusoidal phase error correction for three-dimensional shape measurement using a digital video projector,” Appl. Opt., 46 (1), 36 –43 (2007). http://dx.doi.org/10.1364/AO.46.000036 APOPAI 0003-6935 Google Scholar

7. 

P. S. HuangQ. J. HuF.-P. Chiang, “Double three-step phase-shifting algorithm,” Appl. Opt., 41 (22), 4503 –4509 (2002). http://dx.doi.org/10.1364/AO.41.004503 APOPAI 0003-6935 Google Scholar

8. 

B. Panet al., “Phase error analysis and compensation for nonsinusoidal waveforms in phase-shifting digital fringe projection profilometry,” Opt. Lett., 34 (4), 416 –418 (2009). http://dx.doi.org/10.1364/OL.34.000416 OPLEDP 0146-9592 Google Scholar

9. 

H. GuoH. HeM. Chen, “Gamma correction for digital fringe projection profilometry,” Appl. Opt., 43 (14), 2906 –2914 (2004). http://dx.doi.org/10.1364/AO.43.002906 APOPAI 0003-6935 Google Scholar

10. 

K. Liuet al., “Gamma model and its analysis for phase measuring profilometry,” J. Opt. Soc. Am. A, 27 (3), 553 –562 (2010). http://dx.doi.org/10.1364/JOSAA.27.000553 JOAOD6 0740-3232 Google Scholar

11. 

J. LiL. G. HassebrookC. Guan, “Optimized two-frequency phase-measuring-profilometry light-sensor temporal-noise sensitivity,” J. Opt. Soc. Am. A, 20 (1), 106 –115 (2003). http://dx.doi.org/10.1364/JOSAA.20.000106 JOAOD6 0740-3232 Google Scholar

12. 

R. Legarda-Saet al., “Accurate procedure for the calibration of a structured light system,” Opt. Eng., 43 (2), 464 –471 (2004). http://dx.doi.org/10.1117/1.1635373 OPEGAR 0091-3286 Google Scholar

13. 

S. ZhangP. S. Huang, “Novel method for structured light system calibration,” Opt. Eng., 45 (8), 083601 –083601 (2006). http://dx.doi.org/10.1117/1.2336196 OPEGAR 0091-3286 Google Scholar

14. 

P. Zhouet al., “Phase error analysis and compensation considering ambient light for phase measuring profilometry,” Opt. Lasers Eng., 55 (13), 99 –104 (2014). http://dx.doi.org/10.1016/j.optlaseng.2013.10.027 OLENDN 0143-8166 Google Scholar

Biography

Jun Yao is a PhD candidate at Shanghai Jiao Tong University. He received his BS degree in mechanics engineering from Shanghai Jiao Tong University in 2012. His current research interests include fringe projection profilometry and projection moire method.

Biographies of the other authors are not available.

CC BY: © The Authors. Published by SPIE under a Creative Commons Attribution 4.0 Unported License. Distribution or reproduction of this work in whole or in part requires full attribution of the original publication, including its DOI.
Jun Yao, Xiong Chen, Yihao Zhou, Hong Miao, and Jubing Chen "Phase error elimination considering gamma nonlinearity, system vibration, and noise for fringe projection profilometry," Optical Engineering 53(9), 094102 (24 September 2014). https://doi.org/10.1117/1.OE.53.9.094102
Published: 24 September 2014
Lens.org Logo
CITATIONS
Cited by 24 scholarly publications and 1 patent.
Advertisement
Advertisement
KEYWORDS
Error analysis

Phase shifts

Fringe analysis

Projection systems

Optical engineering

Phase shift keying

Cameras

Back to Top