Discontinuous Surface Reconstruction in Deflectometry Using a Swin Transformer with Fringe Confidence Gated Attention
Authors
Wiktor Jankiewicz, Mikołaj KędzierskiFiles
Abstract
Discontinuous specular surfaces require reliable fringe correspondence, separate height references and explicit distinction between target-height error and agreement with decoded observations. This study evaluates an iterative Swin Transformer correction with fringe-confidence-gated attention under a declared orthographic paraxial deflectometry model. Confidence combines modulation amplitude, sinusoidal fitting residual and intensity clipping. Each iteration starts with a confidence- weighted geometric integration proposal, adds a bounded learned correction, applies damping and restores one supplied height anchor on each of two disconnected reflecting components. Sixteen simulated phase-shift images per surface are generated on a 24 by 24 grid. Independent populations contain 384 training, 64 validation and 96 ordinary test surfaces, with two further 48-surface stress populations. Three learned variants are fitted from two initializations. The full three- update model attains 1.8989 µm mean height RMSE and 1.9945 µm boundary-band RMSE. Initial and physics-only height RMSE values are 1.9217 and 1.8592 µm, respectively. Uniform attention gating yields 1.8999 µm, and removal of the geometric training loss yields 1.9340 µm. Reduced modulation and increased saturation raise full-model height error to 7.3381 and 5.2694 µm. A two-percent screen-distance perturbation produces 2.6232 µm height RMSE, while a common 10 µm anchor shift produces 10.1778 µm. The stronger ordinary physics-only result and the small gate-specific difference place the learned correction in the context of a demanding geometric reference. The results establish a reproducible numerical comparison conditional on the prescribed shape family, phase model, support and supplied component datums.
References
Huang, L., Wang, T., Austin, C., Lienhard, L., Hu, Y., Zuo, C., Kim, D., & Idir, M. (2024). Collimated phase measuring deflectometry. Optics and Lasers in Engineering, 172, 107882. https://doi.org/10.1016/j.optlaseng.2023.107882
Zhang, N., Wang, S., Zhang, S., & Zhu, Q. (2026). High-precision phase compensation in deflectometry for discrete surfaces. Applied Optics, 65(9), 3065–3074. https://doi.org/10.1364/AO.589095
Sreeharan, S., Wang, H., Hirakawa, K., & Li, B. (2024). Aleatoric uncertainty quantification in digital fringe projection systems at a per-pixel basis. Optics and Lasers in Engineering, 180, 108315. https://doi.org/10.1016/j.optlaseng.2024.108315
Qin, J., Jiang, Y., Cao, Y., & Wu, H. (2025). Single-shot phase-shifting composition fringe projection profilometry by multi-attention fringe restoration network. Neurocomputing, 634, 129908. https://doi.org/10.1016/j.neucom.2025.129908
Shi, R., Yin, P., Wu, B., Zhang, T., & Bai, J. (2026). Physics-embedded end-to-end differentiable framework for high-precision and robust interferometry. Laser & Photonics Reviews, 20(22), e71606. https://doi.org/10.1002/lpor.71606
Kuang, Y., Liu, F., Liu, Y., Chen, X., Wu, Y., & Zhang, R. (2024). Correction of spurious phase sign in single closed-fringe demodulation using transformer based Swin-ResUnet. Optics & Laser Technology, 168, 109952. https://doi.org/10.1016/j.optlastec.2023.109952
Cui, Z.-X., Zhu, Q., Cheng, J., Zhang, B., & Liang, D. (2024). Deep unfolding as iterative regularization for imaging inverse problems. Inverse Problems, 40(2), 025011. https://doi.org/10.1088/1361-6420/ad1a3c
Luo, P., Guo, Y., Li, L., & Guo, Q. (2026). Deep-learning-based phase measuring deflectometry for rapid measurement of specular components. Optical Engineering, 65(1), 014101. https://doi.org/10.1117/1.OE.65.1.014101
Wang, Y., & Fang, F. (2024). Stereo bi-telecentric phase-measuring deflectometry. Sensors, 24(19), 6321. https://doi.org/10.3390/s24196321
Austin, C., Shang, W., Huang, L., Wang, T., Paterson, C., Török, P., & Idir, M. (2025). Collimated phase measuring deflectometry II: Re-design of the optical layout for high-curvature surfaces. Optics and Lasers in Engineering, 194, 109173. https://doi.org/10.1016/j.optlaseng.2025.109173
Liu, C., Liu, J., Xing, Y., Ao, X., Shen, H., & Yang, C. (2025). An iterative deflectometry method of reconstruction of separate specular surfaces. Sensors, 25(5), 1549. https://doi.org/10.3390/s25051549
Wang, D., Fang, C., Wang, C., Wang, Z., & Zhang, X. (2026). Discontinuous specular surface measurement based on unconstrained direct phase measuring deflectometry and moving-screen. Optics and Lasers in Engineering, 206, 110055. https://doi.org/10.1016/j.optlaseng.2026.110055
Sanchez-Torres, M., Hernández-Capuchin, I., Ramírez-Fernández, C., Clemente, E., Sánchez-González, J. L. J., & López-Martínez, A. (2026). Recent advances in digital fringe projection profilometry (2022–2025): Techniques, applications, and metrological challenges—A review. Metrology, 6(1), 3. https://doi.org/10.3390/metrology6010003
Xie, T., & Guo, H. (2025). Phase fusion in multi-frequency phase-shifting fringe projection profilometry for minimizing effects of random noise. Applied Optics, 64(6), 1518–1530. https://doi.org/10.1364/AO.551280
Sreeharan, S., Wang, H., Hirakawa, K., & Li, B. (2025). Bayesian calibration of digital fringe projection systems considering both aleatoric and epistemic uncertainties. Optics and Lasers in Engineering, 193, 109098. https://doi.org/10.1016/j.optlaseng.2025.109098
Wang, Y., & Fang, F. (2025). A robust iterative reconstruction technique for deflectometry. Nanotechnology and Precision Engineering, 8(4), 043001. https://doi.org/10.1063/10.0036173
Arndt, C., & Nickel, J. (2026). Invertible ResNets for inverse imaging problems: Competitive performance with provable regularization properties. SIAM Journal on Imaging Sciences, 19(1), 266–301. https://doi.org/10.1137/24M1696524
Ma, Q., Wang, J., Sun, H., Shao, T., & Wang, M. (2026). Deep learning-based phase retrieval with SE-SwinUNet architecture in fringe projection 3D measurement. Measurement, 272, 121044. https://doi.org/10.1016/j.measurement.2026.121044
Lee, G.-Y., Kim, C., Gopakumar, M., Kim, Y., Lee, B., Jeong, Y., & Wetzstein, G. (2026). Neural phase microscopy with metasurface optics for real-time and nanoscale quantitative phase imaging. Nature Communications, 17, 1411. https://doi.org/10.1038/s41467-025-68151-z
Banert, S., Brauer, C., Lorenz, D., & Tondji, L. (2026). Why the noise model matters: A performance gap in learned regularization. Inverse Problems, 42(2), 025005. https://doi.org/10.1088/1361-6420/ae3f4c
Sepanj, M. H., Moradi, S., Nazemi, A., Preston, C., Lee, A. M. D., & Fieguth, P. (2024). From single shot to structure: End-to-end network-based deflectometry for specular free-form surface reconstruction. Applied Sciences, 14(23), 10824. https://doi.org/10.3390/app142310824
Fu, Y., Hong, Y., Jiang, G., & Li, F. (2026). A novel phase measuring deflectometry method based on adaptive fringe. Optics & Laser Technology, 193, 114274. https://doi.org/10.1016/j.optlastec.2025.114274
Zhang, N., Wang, S., Zhang, S., Zhou, S., & Hao, Q. (2024). Virtual reference surface phase measuring deflectometry for high-precision freeform surface measurement. Optics Express, 32(27), 48656–48671. https://doi.org/10.1364/OE.545763
Wang, B., Kong, L., Tang, X., & Song, H. (2026). Cost-effective and dynamic 3D measurement of discontinuous specular surfaces via optical transfer function-guided deflectometry. Measurement, 284, 122261. https://doi.org/10.1016/j.measurement.2026.122261
Chirinos-Rodríguez, J., De Vito, E., Molinari, C., Rosasco, L., & Villa, S. (2024). On learning the optimal regularization parameter in inverse problems. Inverse Problems, 40(12), 125004. https://doi.org/10.1088/1361-6420/ad8a84
Abdioglu, H. B., Gursoy, R., Isik, Y., Balci, I. C., Esmer, G. B., Uvet, H., & Demircali, A. A. (2026). Comparative evaluation of denoising methods for off-axis digital holograms under realistic mixed-noise conditions. Optics Express, 34(7), 12687–12701. https://doi.org/10.1364/OE.591043
Zhou, Q., Qian, J., Tang, J., & Li, J. (2024). Deep unrolling networks with recurrent momentum acceleration for nonlinear inverse problems. Inverse Problems, 40(5), 055014. https://doi.org/10.1088/1361-6420/ad35e3
Huang, J., Gao, Y., & Wu, C. (2024). On dynamical system modeling of learned primal-dual with a linear operator K: Stability and convergence properties. Inverse Problems, 40(7), 075006. https://doi.org/10.1088/1361-6420/ad49ca
Lenau, A., Dimiduk, D., & Niezgoda, S. R. (2026). Training variation of physically-informed deep learning models. Machine Learning: Science and Technology, 7(3), 035005. https://doi.org/10.1088/2632-2153/ae5e18
Chen, Z., Zhong, X., & Tian, Y. (2026). CVA-Net: Multi-view 3D reconstruction for fringe projection profilometry via cross-view attention and Sim2Real learning. Photonics, 13(6), 601. https://doi.org/10.3390/photonics13060601
Chen, Y., Wang, Z., Xie, W., & Huang, Z. (2025). Performance of deep learning in moiré fringe analysis with different intensities. Applied Optics, 64(29), 8802–8807. https://doi.org/10.1364/AO.569259
Zhang, L., Ji, Y., Wu, W., & Wang, J. (2025). Deep learning-based restoration method for missing fringe information in the high reflectivity regions. Precision Engineering, 96, 80–93. https://doi.org/10.1016/j.precisioneng.2025.06.006
Yang, S., Zhu, X., Cao, Z., Zhao, J., Xiao, X., Yuan, Z., Xu, Y., Wang, M., & Wu, P. (2024). Improved calibration method based on phase-slope description in phase-shift deflectometry. Optics Communications, 570, 130873. https://doi.org/10.1016/j.optcom.2024.130873
Lang, W., Zhang, X., Chen, Y., Chen, T., Yang, P., Xu, M., & Jiang, X. (2025). Deterministic form-position deflectometric measurement of monolithic multi-freeform optical structures via Bayesian multisensor fusion. Light: Advanced Manufacturing, 6, 29. https://doi.org/10.37188/lam.2025.029
Chen, Y., Lang, W., Chen, T., Niu, X., & Zhang, X. (2025). Enhancing the efficiency and determinacy of in-situ monoscopic phase measuring deflectometry by Bayesian approach. Precision Engineering, 94, 693–699. https://doi.org/10.1016/j.precisioneng.2025.04.002