Wavelet-Assisted Adaptive EKF Phase Shift Estimation Approach for Motion-Induced Error Compensation
Xin Lai, Qiushuo Yu, Zhenyi Chen

TL;DR
This paper introduces a new method to reduce errors in 3D imaging caused by motion during phase-shifting profilometry.
Contribution
A wavelet-assisted adaptive EKF approach is proposed for accurate phase shift estimation in dynamic scenes.
Findings
The method effectively reduces 3D reconstruction errors caused by motion.
It accurately estimates initial carrier frequency and phase shift maps.
The approach is extendable to N-step PSP systems.
Abstract
Phase-shifting profilometry (PSP) suffers from motion-induced phase-step variations in dynamic scenes. The breakdown of the fixed phase shift assumption results in issues such as ripples, distortions and accuracy decline in PSP systems. To reduce motion-induced phase errors, we propose a wavelet-assisted adaptive extended Kalman filter (WAEKF) to estimate varied pixel-wise phase shift. A wavelet-based strategy is presented to extract an initial spatial carrier frequency at each row from fringe patterns for EKF estimation. A state-space model employing the quadrature phase component and carrier frequency is established in this paper. The unknown phase shifts can be evaluated by using a forward–backward filter. Experiments show that the proposed method can acquire an accurate initial carrier frequency and phase shift map, which effectively reduces 3D reconstruction error and can be…
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12- —Natural Science Foundation of Sichuan Province
- —State Key Laboratory of Oil and Gas Reservoir Geology and Exploitation
- —Science and Technology Cooperation Project of the CNPC-SWPU Innovation Alliance
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsOptical measurement and interference techniques · Structural Health Monitoring Techniques · Synthetic Aperture Radar (SAR) Applications and Techniques
1. Introduction
Phase-shifting profilometry (PSP) is a widely used structured-light technique for high-accuracy, non-contact three-dimensional (3D) shape measurement. In PSP systems, sinusoidal fringe patterns are projected and demodulated to retrieve the 3D shape of the object. This technique has found widespread application in industrial inspection, robotic perception, and biomedical measurement [1,2,3,4,5]. In dynamic scenes, phase shift deviations are induced from the object motion in the projected fringe patterns. Crucially, these deviations typically exhibit non-uniform, pixel-wise spatial variations across the object [6]. Preset parameters of the PSP method undergo variations, including the carrier frequency and phase shift. Such variations lead to errors in the unwrapped phase and continuous phase in the reconstructed 3D shape.
In practical measurements, phase shift uncertainty mainly arises from two sources: the projection devices, such as nonlinearity or timing errors in digital light projectors (DLPs) [7,8], and the object motion during dynamic measurements, including translation, rotation, or non-rigid deformation, which induces additional phase shift deviations and phase errors [9,10,11,12]. Such phase errors degrade the reliability of conventional PSP algorithms in dynamic scenes and often give rise to severe motion artifacts in the reconstruction. Researchers reduce motion-induced errors by increasing the acquisition rate of the projection and image system [13,14], which effectively reduces errors in the phase shift introduced by the projector. Fringe-based 3D imaging frameworks have also been explored to cut down the required number of projected images [15,16]. A variety of compensation methods have been proposed to address this issue, including object-tracking approaches [17,18], Fourier-assisted PSP methods [19,20], iterative least-squares algorithms [21,22], Hilbert transform-based methods [23,24,25], the statistical property compensation strategy [26], the deep-learning-based approach [27,28,29], and the motion prediction method [30]. These studies can be broadly divided into pixel-wise and region-wise estimation methods.
Pixel-wise compensation methods have been introduced to correct motion-induced errors. Guo et al. [31] presented a real-time average-compensation scheme for four-step phase-shifting profilometry. The inverse-splitting dual three-frame strategy was developed to generate two phase maps within the same framework, and the average phase is used to compensate for motion error. This method suffers from the inherent limitations of Fourier fringe analysis method. Guo et al. [32] further proposed a generalized phase shift deviation estimation method for N-step phase-shifting profilometry, N-step fringe images are regrouped according to an image-reuse strategy, and phase shift deviations are obtained from the differences between adjacent phase maps. Yu et al. [33] introduced a quasi-pixel-wise compensation scheme tailored to the four-step phase-shifting profilometry. By taking advantage of the periodic nature of the fringe patterns to estimate the phase steps, this approach markedly suppresses motion-induced ripples and remains effective for objects undergoing non-rigid deformation. Zhang et al. [34] proposed a binomial self-compensation (BSC) strategy to iteratively compensate motion-induced errors at the pixel level across multiple frames. Li et al. [28] developed a pixel-wise motion compensation approach based on deep learning for rapid 3D reconstruction of dynamic scenes. In their framework, a NAS-designed compact network is combined with dual-frequency fringe projection to output the unwrapped phase, thereby realizing fast and accurate 3D shape recovery. However, this data-driven approach requires large training datasets, and its generalization is limited when measurement conditions differ from those in the training data. Jeon et al. [35] reported a pixel-wise approach aimed at reducing motion-induced errors in a motor-driven digital fringe projection system. Their technique employs a motion-sensitive phase-shifting scheme, incorporating motor encoder data and camera–projector pinhole modeling, to correct pixel disparities and phase shift deviations with only three fringe projections. However, this solution is strongly customized to the specific motorized configuration and does not readily adapt to broader motion conditions or alternative hardware designs. Pixel-wise estimation methods provide fine-grained, high-accuracy phase shift compensation and effectively suppress motion-induced artifacts, but some methods may increase computational complexity.
Region-wise compensation methods utilize local information to reduce motion phase errors and then propagate the correction across the entire field. Liu et al. [36] developed a compensation scheme for phase-shifting profilometry, in which object motion is inferred from the differences between two successive 3D frames and the resulting information is used, via a projector pinhole model, to estimate the phase shift errors. Feng et al. [9] introduced an iterative scheme for estimating phase shift deviations within a dynamic three-dimensional measurement framework. In this approach, the phase error is derived from the statistical nature of the fringes, and reliable neighboring pixels are then exploited to refine the phase error correction. Cong et al. [19] introduced a Fourier-assisted phase-shifting profilometry method, the phase shift deviations are compensated by single-frame Fourier transform profilometry using spectral information, which enhances the accuracy of dynamic 3D measurement for rigid motion, but it is not applicable to non-rigid deformation. An extended Kalman filter method was proposed by Lai et al. [37] for phase shift estimation. In this method a local quadratic phase model is utilized to obtain the actual phase step and compensates for the uncertain phase shifts. Subsequently, Lai et al. [38] developed an extended Kalman filter scheme for phase shift estimation that explicitly incorporates background information. In their method, a 2D-VMD-BEMD-based process isolates the background intensity and guides window selection, allowing reliable estimation of actual phase steps under dynamic scenes and leading to more accurate 3D reconstructions. By adopting a local-to-global strategy, the 3D reconstruction process is accelerated and both accuracy and computational efficiency are improved. However, it cannot fully capture the varying phase shifts across all pixels in the field. In dynamic scenarios, the carrier frequency during projection may slightly deviate from the preset value due to object motion, especially during rotation. Therefore, it is necessary to obtain the actual carrier frequency from the captured fringe patterns. Inspired by these, we explore a full-field adaptive EKF estimation approach for phase shift estimation.
To address the full-field phase shift variations induced by object motion in dynamic scenes, this paper presents a wavelet-assisted adaptive extended Kalman filter (WAEKF) to estimate the additional phase shift deviation. A wavelet-based scheme is employed to achieve the carrier frequency for providing an initial value for adaptive EKF estimation. A state-space model constructed from the carrier frequency and quadrature components performs Bayesian recursive estimation. The carrier frequency and wrapped phase can be reliably obtained when the fringe pattern is disturbed by the object motion. Experiments demonstrate that the proposed method effectively estimates the carrier frequency and phase shifts, thereby significantly improving the accuracy of 3D reconstruction in dynamic scenarios. The proposed method focuses on the dynamic measurement of the moving objects, where the acquired fringe patterns are processed offline rather than in real-time. The remainder of this paper is organized as follows: Section 2 describes the principle and framework of the proposed WAEKF. Section 3 presents the experimental validation under the translation and rotation motions. Finally, Section 4 presents the conclusion.
2. Principle
2.1. Phase-Shifting Profilometry with Unknown Phase-Shift Error
In three-step phase-shifting profilometry, three sinusoidal fringe patterns with nominal phase steps are projected and captured to recover the object phase. Under the ideal assumption, the recorded intensity at pixel in the k-th step can be written as [39]
where and represents the background intensity and modulation, respectively. is the phase of the measured object. is the fixed phase step, that is, in the standard three-step phase-shifting algorithm. However, actual phase shift often deviates from the fixed value due to the projector, camera, mechanical jitter and motion of objects. Therefore, the actual phase shift is expressed as
where is an unknown phase shift deviation which can spatially vary in practical situations.
To explicitly connect phase shift deviations with the carrier frequency employed in this work, let . For commonly used vertical fringes (varying primarily along ), the captured intensity can be expressed as
where is the spatial carrier frequency. In dynamic measurement, object motion undermines the ideal temporal phase-shifting assumption. Specifically, translation or rotation motion causes the phase shift to deviate from its preset value. As demonstrated in Figure 1, this deviation results in motion-induced phase errors. Motion-induced phase errors are inherently pixel dependent and may vary significantly across regions with distinct motion behaviors or geometries.
The wrapped phase of the traditional three-step phase-shifting algorithm can be expressed as
The wrapped phase obtained by Equation (4) exhibits a decline in reconstruction accuracy due to phase shift deviation. Therefore, it is necessary to estimate the actual phase shift to obtain an accurate wrapped phase. Furthermore, the carrier frequency of the captured fringe patterns deviates from the preset value, and it is necessary to extract it using the wavelet method to provide prior information. A Bayesian inference model is constructed to estimate the quadrature components, which achieves the unknown phase shift. Therefore, we develop a new wavelet-assisted adaptive EKF state-space framework.
2.2. Wavelet-Assisted Adaptive EKF State-Space Model
A wavelet-assisted adaptive EKF state-space model is formulated to mitigate the phase bias caused by phase shift deviations in the three-step PSP. The dominant spatial carrier frequency is first estimated via wavelet analysis and incorporated into the state estimation model as a prior, thereby constraining the adaptive EKF prediction. Subsequently, the quadrature components are recursively estimated from each single fringe image, from which the instantaneous phase is obtained to support later phase shift deviation estimation and compensation.
The background component of the fringe pattern, affected by ambient light, reflectance, and sensor non-uniformity, varies over time and biases phase-related estimation by degrading modulation contrast and increasing noise sensitivity. Consequently, the removal of the DC term improves the reliability of 3D reconstruction. We perform carrier estimation row by row of the captured fringe pattern. For each row x, the background is removed by the following method.
where k is the number of pixels in the row. and denotes the signal without background intensity . can be obtained through the modified 2 + 1 PSP. The continuous wavelet transform of along the x-direction is computed by
where and are the scale and spatial position, respectively. denotes an analytic mother wavelet. The scalogram magnitude is defined as
A row-wise dominant-scale selection rule is
The generalized Morse wavelet is employed as the mother wavelet to process the 8-bit fringe patterns due to its analyticity and time–frequency localization. The symmetry parameter and the time–bandwidth product of the Morse wavelet are set to 3 and 60, respectively. The corresponding carrier frequency is obtained by mapping the selected scale to the frequency and converting it to an angular frequency
where provides a robust prior for the carrier in the EKF prediction model for row y.
For each fringe pattern, a WAEKF recursion is performed along the spatial index. The state vector of 3D measurement is defined as
where denotes the spatial carrier frequency. and , respectively, represent the quadrature components of the fringe patterns:
where denotes the instantaneous phase of the fringe pattern at pixel.
The spatial carrier frequency is acquired by Equation (10), and the proposed process model can be represented as
and denotes the process noise. In the EKF framework, the process noise covariance characterizes the state uncertainty arising from reflectivity fluctuations, environment influences, and unmodeled disturbances during the shape measurement.
After removing the background, the measurement model can be represented as
where is measurement noise with variance. The corresponding Jacobian matrix is
The EKF recursion is performed pixel by pixel; time prediction is
where is the Jacobian of :
Measurement noise matrix is adaptively adjusted using the measured and predicted values, which is defined as
where is the innovation. is updated by forgetting factor . This parameter regulates the balance between historical noise information and current measurement innovation.
Measurement update of the proposed method is
The Rauch–Tung–Striebel (RTS) smoother is applied during a backward pass to refine the EKF results. By propagating information from future measurements, the RTS recursion reduces the posterior error covariance at each time step and yields a more temporally consistent state estimate. The RTS method is inherently noncausal and therefore requires offline batch processing. The wrapped phase can be performed as
2.3. Phase Shift Estimation of Wavelet-Assisted Adaptive EKF
Once the wrapped phases of fringe patterns are available, the phase shift deviations between successive fringe patterns can be calculated. The estimated actual phase shift can be calculated as
According to Equations (25) and (26), the unknown background intensity and the quadrature phase components with modulation can be computed as [40]
where , and , respectively, represent the background intensity, numerator and denominator. The high-frequency wrapped phase of the measured object is
Once the wrapped phase is acquired, the dual-frequency fringe patterns are employed to unwrap it and retrieve the continuous phase. Finally, the 3D shape of the measured object is accurately reconstructed.
2.4. Framework of the Proposed WAEKF Method
A WAEKF algorithm is proposed to estimate actual phase shifts on a pixel basis in dynamic scenes. The framework of the proposed method is illustrated in Figure 2.
The framework of the WAEKF algorithm is described as follows:
Step 1: High-frequency and low-frequency fringe patterns of the measured object are captured. Based on the obtained high-frequency fringe patterns, the appropriate initial carrier frequency is acquired by the wavelet method. The extracted initialization of the carrier frequency could assist the EKF to get more accurate phase shift.
Step 2: The WAEKF method is built on the phase state-space model. The carrier frequency, the cosine and sine components are used as the state vector. Subsequently, the WAEKF is utilized to obtain the forward state estimates. The RTS smoother refines the forward state estimates during a backward process. Subsequently, the highly accurate wrapped phase is extracted from these smoothed components.
Step 3: The wrapped phase estimated by step 2 is used to calculate the actual phase shift map. The actual phase shift map can utilize Equation (25) to compute the accurate wrapped phase and eliminate motion errors by the least-squares phase shift method.
Step 4: The continuous phase is retrieved from the accurate wrapped phase by using the double-frequency three-step PSP and modified 2 + 1 PSP method [6,41,42], thereby achieving high-accuracy 3D shape reconstruction
3. Experiment and Discussion
3.1. Experimental Setup
A structure-light projection system, which consists of a camera (BaumaVCXU-31M, 1280 × 800 pixels) and a DLP projector (Light Crafter 4500), is constructed to evaluate the WAEKF method for motion objects. Translation and rotation motion are considered to verify the effectiveness and robustness of the method.
Initial parameters critically influence estimation outcomes and improper initialization setting often leads to failure. The initial modulation and covariance matrices are adaptively determined by analyzing the grayscale intensity of the fringe patterns. The forgetting factor is set to 0.5 to balance the current measurement observation and prior estimate. Figure 3 illustrates the variations of the measurement noise under different forgetting factors. The initial experimental parameters are listed in Table 1. The value of is obtained by the wavelet method.
3.2. Experiment of Translation Motion
The experiment on translation motion of the measured object using the WAEKF method was conducted with the improved dual-frequency heterodyne method. The high frequency was 64 and low frequency was 56. The beat frequency between them was 8.
In the translation motion experiment, the actual phase shifts are estimated by using the proposed method, and the phase shift maps of the motion object are given in Figure 4a,b. The phase shift steps are estimated row by row and pixel by pixel within the mask region. The actual phase shift steps of row 400 are illustrated in Figure 5. The estimated phase shifts between adjacent fringe patterns vary within the range of approximately 2.2–2.3 rad and 4.3–4.5 rad, and distinctly deviate from the preset value of rad and rad in the three-step PSP. It can be observed that the fixed phase shift values have been changed in the actual measurement due to the object motion.
The comparison of the traditional three-step PSP method is shown in Figure 6 and Table 2. The 3D reconstruction results and error distribution under the translation motion using the proposed method and tradition method are presented in Figure 6a–f. It can be seen from Figure 6c that the traditional method exhibits significant motion-induced errors in the reconstructed shape, whereas the proposed method substantially mitigates the errors. The sectional line along the 400th row shown in Figure 6f indicates that the reconstructed phase using the WAEKF method closely approximates the ground truth, whereas the traditional method exhibits noticeable deviations. Figure 7 presents the modulation map to analyze the impact of low SNR. To eliminate the impact of low SNR, a modulation threshold mask is applied. By excluding the masked low-SNR regions from the EKF processing, the denominator in Equation (19) is prevented from approaching zero, thereby effectively avoiding numerical divergence. The evaluation metrics are shown in Table 2. The WAEKF approach demonstrates significant improvements in the root-mean-square error (RMSE) and standard deviation (STD) relative to the traditional method. It demonstrates that the proposed approach eliminates motion-induced phase errors and yields an accurate reconstruction.
3.3. Experiment of Rotation Motion
To further validate the effectiveness of the WAEKF method, the rotation motion experiments were conducted, and a Fourier-assisted approach (FAPS) [19] is used for comparison. The estimated phase shift using the WAEKF method is presented in Figure 8. The results demonstrate that the proposed algorithm accurately estimates the actual phase step of the captured fringe. The actual phase shifts of the 280th row are shown in Figure 9.
The 3D reconstruction results are illustrated in Figure 10. The 3D shape of the measured object is recovered using different methods, as depicted in Figure 10a–c,g–i,m. The proposed method effectively suppresses motion-induced artifacts caused by rotation motion and yields a smoother reconstructed shape compared with the traditional method. This indicates that the proposed algorithm is reliable and robust to the rotation motion. The error distribution maps and comparison results are shown in Figure 10d,e,j–l; it can be seen from that the retrieved phase using the proposed method is in close agreement with the ground truth. To analyze the impact of a low SNR during rotation, Figure 10o presents the corresponding modulation map. Consistent with the translational case, applying the threshold mask excludes these low-SNR regions from the EKF processing, effectively preventing numerical divergence. Figure 10n indicates that the section line of the proposed method is closer to the ground truth. Experimental results demonstrate that even in regions with significant deformation, the proposed method maintains reliable estimation performance and yields improved overall reconstruction accuracy.
As summarized in Table 3, the WAEKF method significantly outperforms the traditional method and yields smaller errors than the FAPS method. More importantly, ablation experiments clearly validate the indispensable role of each algorithm. Quantitatively, compared to the optimal RMSE of 0.0446 rad, the error increases to 0.0766 rad without wavelet initialization and to 0.0568 rad without RTS smoothing in the WAEKF. Notably, the method with fixed R achieves the highest RMSE of 0.2066 rad, directly confirming the critical necessity of the adaptive mechanism. The comparative evaluation confirms the optimization achieved by the wavelet, RTS and adaptive R components. Furthermore, the results indicate that the adaptive R provides a better improvement in WAEKF. It demonstrates that all modules are indispensable. Similarly, the identical conclusion is evident in STD values. Experimental results demonstrate that the proposed method is effective for both translation and rotation motions.
To further verify its performance under the rotation motion, an additional experiment is conducted. The phase shift maps and 3D reconstructed results of the rotation experiment are presented in Figure 11. As observed in Figure 11a–f, the WAEKF method effectively captures the spatial phase shift derivation introduced by the rotation motion. The estimated phase shift values fall within the range of approximately 2–2.6 rad and 4–4.6 rad, and their spatial distribution varies according to the motion state and shape geometry of the measured object. The accurate phase shift estimation leads to noticeably accurate reconstructed phases shown in Figure 11g–i. In contrast, the traditional method produces motion artifacts in Figure 11j–l. The traditional method is unable to compensate for spatial phase errors under rotation, so the reconstructed 3D shape exhibits local motion-induced ripples. By comparison, the proposed approach offers more reliable and accurate reconstruction results, with a clear reduction in motion ripples induced by the object’s movement. These experiments verify that the WAEKF-based motion error compensation method enhances the accuracy in dynamic 3D shape measurement.
Before EKF, the initial carrier frequency per row obtained from the wavelet method is shown in Figure 12. The initial carrier frequency has significant deviation in different rows, indicating that the actual carrier frequency varies spatially under the object motion. The extracted initial carrier frequency serves as robust prior information for the WAEKF method and facilitates accurate phase recovery in the subsequent EKF.
3.4. Discussion
The proposed framework provides a feasible and effective solution for addressing motion-induced errors in dynamic measurements, while several aspects still require further investigation. It should be noted that the current framework performs motion error compensation in an offline manner during the 3D reconstruction process, which limits its real-time applicability. In addition, the robustness of the method under high-speed motion conditions remains to be further explored. Moreover, highly complex object geometries or abrupt depth discontinuities may still affect the stability of fringe analysis and degrade the reconstruction accuracy. Future work will focus on further improving system performance through the integration of advanced high-speed projectors and cameras, enhanced real-time capability, and the background optimization, so as to further reduce motion artifacts caused by moving objects.
4. Conclusions
A pixel-wise phase shift estimation method based on a wavelet-assisted adaptive EKF is presented to address the motion-induced phase errors in 3D reconstruction measurement. A state-space model is constructed using the quadrature components and carrier frequency in this work. The wavelet-assisted method can extract the initial carrier frequency from the fringe patterns, which is used as a prior to constrain the adaptive EKF for pixel-wise estimation. The proposed estimation framework derives the wrapped phases from the WAEKF-estimated quadrature components, and the inter-frame phase shift deviations are evaluated between successive patterns to achieve the accurate 3D shape. Experiments demonstrate that the phase errors caused by the object motion are effectively reduced and the reconstruction accuracy in dynamic measurements is enhanced by the proposed WAEKF method.
This method offers a practical reference for 3D sensing in industrial environments and biomedical imaging where motion is unavoidable. For instance, it is applicable to biomedical imaging, such as dental orthodontics; by compensating for phase errors caused by inevitable device and head movement during scanning, the system can retrieve more accurate 3D dental morphology without requiring absolute patient immobility. Ultimately, the proposed WAEKF framework provides a robust solution for high-accuracy 3D reconstruction in scenarios involving motion.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Ford K.R. Myer G.D. Hewett T.E. Reliability of Landing 3D Motion Analysis: Implications for Longitudinal Analyses Med. Sci. Sports Exerc.2007392021202810.1249/mss.0b 013e 318149332 d 17986911 · doi ↗ · pubmed ↗
- 2Ekstrand L. Karpinsky N. Wang Y. Zhang S. High-Resolution, High-Speed, Three-Dimensional Video Imaging with Digital Fringe Projection Techniques Jo VE 20135042110.3791/5042124326674 PMC 4028810 · doi ↗ · pubmed ↗
- 3Zhang Z.H. Review of Single-Shot 3D Shape Measurement by Phase Calculation-Based Fringe Projection Techniques Opt. Lasers Eng.2012501097110610.1016/j.optlaseng.2012.01.007 · doi ↗
- 4Su X. Zhang Q. Chen W. Three-Dimensional Imaging Based on Structured Illumination Chin. J. Laser 201441020900110.3788/CJL 201441.0209001 · doi ↗
- 5Lunghi I. Vannini E. Fovo A.D. Sarno V.D. Rocco A. Fontana R. A Performance Comparison of 3D Survey Instruments for Their Application in the Cultural Heritage Field Sensors 202424387610.3390/s 2412387638931660 PMC 11207452 · doi ↗ · pubmed ↗
- 6Zuo C. Feng S. Huang L. Tao T. Yin W. Chen Q. Phase Shifting Algorithms for Fringe Projection Profilometry: A Review Opt. Lasers Eng.2018109235910.1016/j.optlaseng.2018.04.019 · doi ↗
- 7Lei S. Zhang S. Flexible 3-D Shape Measurement Using Projector Defocusing Opt. Lett.2009343080308210.1364/OL.34.00308019838232 · doi ↗ · pubmed ↗
- 8Gong Y. Zhang S. Ultrafast 3-D Shape Measurement with an off-the-Shelf DLP Projector Opt. Express 201018197431975410.1364/OE.18.01974320940869 · doi ↗ · pubmed ↗
