Abstract
High-precision 3D scanning typically requires multiple phase-shifted fringe patterns, limiting its application in dynamic environments. We present PSNet, a deep learning model designed to generate a full sequence of phase-shifted fringe patterns from a single snapshot. By leveraging a U-Net architecture and a hybrid loss function that prioritizes phase accuracy, PSNet bridges the gap between high-precision multi-shot methods and high-speed single-shot techniques.
Introduction
Fringe Projection Profilometry (FPP) is a cornerstone of optical metrology for 3D reconstruction. The Phase-Shifting (PS) algorithm is widely regarded as the gold standard for accuracy, but it necessitates capturing multiple images (typically three or more) with shifted patterns. This multi-shot requirement makes it susceptible to motion artifacts and limits its use for dynamic objects. Conversely, traditional single-shot methods like Fourier Transform profilometry offer high speed but often struggle with complex surface geometries, sharp edges, and noise.
PSNet addresses this trade-off by using deep learning to "hallucinate" the missing phase-shifted images from a single captured fringe pattern, enabling high-precision phase retrieval from a single frame.
Methods
Architecture
PSNet is based on the U-Net architecture, a symmetric encoder-decoder structure with skip connections. The model takes a single fringe pattern ($640 \times 480$ pixels) as input. The encoder path performs down-sampling to extract high-level features, while the decoder path reconstructs the predicted sequence of $N$ phase-shifted patterns.
Hybrid Loss Function
To ensure the model learns features critical for 3D reconstruction rather than just pixel-level similarity, the authors implemented a custom hybrid loss function ($L$). This function combines intensity error and phase error:
- Intensity Error: Measures the pixel-wise difference between predicted and ground truth patterns.
- Phase Error: Measures the difference between the phase calculated from the predicted pixels and the ground truth phase.
A weighting factor ($\lambda = 0.015$) is used to balance these terms, forcing the network to prioritize phase accuracy, which is paramount for high-quality 3D scanning.
Datasets and Training
Due to the difficulty of obtaining large-scale ground truth 3D data, the model was trained on a simulated dataset created using 3Ds Max 2018. The dataset included 900 samples derived from 180 diverse 3D objects with varying shapes, reflectance, and poses. Each sample consisted of an 8-step phase-shifting sequence. To improve real-world robustness, data augmentation techniques—such as random scaling and intensity offsets—were applied to simulate varying ambient light and surface reflectance.
Results
PSNet's performance was evaluated on both simulated and real-world data. The predicted fringe patterns were found to be visually indistinguishable from the ground truth.
Key findings include:
- Detail Preservation: Unlike neighborhood-based methods (e.g., Fourier Transform), PSNet's pixel-wise prediction capability allows it to maintain sharp details at object boundaries and discontinuities.
- Robustness: The model successfully handled complex curvatures and varying reflectance. Testing with up to 8-step patterns showed significant improvements in noise robustness compared to standard 3- or 4-step methods.
- Real-world Validation: Despite being trained on synthetic data, the model generalized well to real-world objects, such as tripods and boxes, captured with a physical FPP system.
Conclusion
PSNet demonstrates that deep learning can effectively synthesize high-quality phase-shifted sequences from a single image. While the current implementation is limited to a fixed resolution ($640 \times 480$) and requires GPU acceleration, it represents a significant step toward high-speed, high-precision 3D metrology. Future work will focus on fine-tuning with real-world datasets and optimizing the architecture for high-resolution cameras and embedded systems.
Reference: Qi, Z., Liu, X., Liu, X., Yang, J., & Zhang, Y. (2021). PSNet: a deep learning model based digital phase shifting algorithm from a single fringe image. Optics Letters.
Summary updated