A Fast Autofocus System Based on the Advancement of the CGH Algorithm
Abstract
1. Introduction
2. Principle and Discussion
2.1. The Refractive Surface Calculation
2.2. Stochastic Gradient Descent Principle
2.3. Objective Metrics
3. Experimental Results and Discussion
| Algorithm 1: Autofocus program |
![]() |
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Grier, D.G.; Roichman, Y. Holographic optical trapping. Appl. Opt. 2006, 45, 880–887. [Google Scholar] [CrossRef]
- Woerdemann, M.; Alpmann, C.; Esseling, M.; Denz, C. Advanced optical trapping by complex beam shaping. Laser Photonics Rev. 2013, 7, 839–854. [Google Scholar] [CrossRef]
- Yuan, G.; Zhou, M.; Peng, Y.; Chen, M.; Geng, Z. Error-compensation network for ringing artifact reduction in holographic displays. Opt. Lett. 2024, 49, 3210–3213. [Google Scholar] [CrossRef]
- Liu, T.; Ning, H.; Cao, H.; Luo, D.; Xu, Z.; Luo, C.; Su, G.; Liu, Y.; Yao, R.; Peng, J. Research progress of large viewing-area 3D holographic near-eye display. Laser Photonics Rev. 2024, 18, 2300641. [Google Scholar] [CrossRef]
- He, L.; Chen, X.; Yang, Y.; Liu, X.; Chen, Y.; Xu, L.; Gu, C. Using high-diffraction-efficiency holographic optical elements in a full-color augmented reality display system. Opt. Express 2023, 31, 29843–29858. [Google Scholar] [CrossRef]
- Rosen, J.; Brooker, G. Non-scanning motionless fluorescence three-dimensional holographic microscopy. Nat. Photonics 2008, 2, 190–195. [Google Scholar] [CrossRef]
- O’Connor, T.; Doblas, A.; Javidi, B. Structured illumination in compact and field-portable 3D-printed shearing digital holographic microscopy for resolution enhancement. Opt. Lett. 2019, 44, 2326–2329. [Google Scholar] [CrossRef]
- Peng, Y.; Choi, S.; Padmanaban, N.; Wetzstein, G. Neural holography with camera-in-the-loop training. ACM Trans. Graph. 2020, 39, 1–14. [Google Scholar] [CrossRef]
- Gabor, D. Holography, 1948–1971. Science 1972, 177, 299–313. [Google Scholar] [CrossRef]
- Pi, D.; Liu, J.; Wang, Y. Review of computer-generated hologram algorithms for color dynamic holographic three-dimensional display. Light Sci. Appl. 2022, 11, 231. [Google Scholar] [CrossRef] [PubMed]
- Zhang, H.; Zhao, Y.; Cao, L.; Jin, G. Fully computed holographic stereogram based algorithm for computer-generated holograms with accurate depth cues. Opt. Express 2015, 23, 3901–3913. [Google Scholar] [CrossRef] [PubMed]
- Madsen, A.E.G.; Eriksen, R.L.; Glückstad, J. Comparison of state-of-the-art computer generated holography algorithms and a machine learning approach. Opt. Commun. 2022, 505, 127590. [Google Scholar] [CrossRef]
- Blinder, D.; Nishitsuji, T.; Schelkens, P. Real-time computation of 3D wireframes in computer-generated holography. IEEE Trans. Image Process. 2021, 30, 9418–9428. [Google Scholar] [CrossRef]
- Sui, X.; He, Z.; Chu, D.; Cao, L. Non-convex optimization for inverse problem solving in computer-generated holography. Light Sci. Appl. 2024, 13, 158. [Google Scholar] [CrossRef]
- Yang, G.; Dong, B.; Gu, B.; Zhuang, J.Y.; Ersoy, O.K. Gerchberg–Saxton and Yang–Gu algorithms for phase retrieval in a nonunitary transform system: A comparison. Appl. Opt. 1994, 33, 209–218. [Google Scholar] [CrossRef]
- Hwang, H.E.; Chang, H.T.; Lie, W.N. Fast double-phase retrieval in Fresnel domain using modified Gerchberg-Saxton algorithm for lensless optical security systems. Opt. Express 2009, 17, 13700–13710. [Google Scholar] [CrossRef]
- Fienup, J.R. Phase retrieval algorithms: A comparison. Appl. Opt. 1982, 21, 2758–2769. [Google Scholar] [CrossRef]
- Chen, C.; Lee, B.; Li, N.N.; Chae, M.; Wang, D.; Wang, Q.H.; Lee, B. Multi-depth hologram generation using stochastic gradient descent algorithm with complex loss function. Opt. Express 2021, 29, 15089–15103. [Google Scholar] [CrossRef] [PubMed]
- Shen, C.; Zheng, Y.; Le, Z. Novel approach based on stochastic gradient descent for controlling the reconstructed phase randomness of computer-generated holograms. Opt. Lasers Eng. 2023, 166, 107593. [Google Scholar] [CrossRef]
- Chen, Y.; Chi, Y.; Fan, J.; Ma, C. Gradient descent with random initialization: Fast global convergence for nonconvex phase retrieval. Math. Program. 2019, 176, 5–37. [Google Scholar] [CrossRef] [PubMed]
- Chakravarthula, P.; Peng, Y.; Kollin, J.; Fuchs, H.; Heide, F. Wirtinger holography for near-eye displays. ACM Trans. Graph. 2019, 38, 1–13. [Google Scholar] [CrossRef]
- Schroff, P.; La Rooij, A.; Haller, E.; Kuhr, S. Accurate holographic light potentials using pixel crosstalk modelling. Sci. Rep. 2023, 13, 3252. [Google Scholar] [CrossRef] [PubMed]
- Wu, R.; Wang, H.; Liu, P.; Zhang, Y.; Zheng, Z.; Li, H.; Liu, X. Efficient optimal design of smooth optical freeform surfaces using ray targeting. Opt. Commun. 2013, 300, 100–107. [Google Scholar] [CrossRef]
- Ries, H.; Muschaweck, J. Tailored freeform optical surfaces. J. Opt. Soc. Am. A 2002, 19, 590–595. [Google Scholar] [CrossRef]
- Schmidt, S.; Thiele, S.; Toulouse, A.; Bösel, C.; Tiess, T.; Herkommer, A.; Gross, H.; Giessen, H. Tailored micro-optical freeform holograms for integrated complex beam shaping. Optica 2020, 7, 1279–1286. [Google Scholar] [CrossRef]
- Doskolovich, L.L.; Mingazov, A.A.; Byzov, E.V.; Skidanov, R.V.; Ganchevskaya, S.V.; Bykov, D.A.; Bezus, E.A.; Podlipnov, V.V.; Porfirev, A.P.; Kazanskiy, N.L. Hybrid design of diffractive optical elements for optical beam shaping. Opt. Express 2021, 29, 31875–31890. [Google Scholar] [CrossRef]
- Feng, Z.; Froese, B.D.; Liang, R. Composite method for precise freeform optical beam shaping. Appl. Opt. 2015, 54, 9364–9369. [Google Scholar] [CrossRef] [PubMed]
- Shi, L.; Li, B.; Kim, C.; Kellnhofer, P.; Matusik, W. Towards real-time photorealistic 3D holography with deep neural networks. Nature 2021, 591, 234–239. [Google Scholar] [CrossRef] [PubMed]
- Choi, S.; Gopakumar, M.; Peng, Y.; Kim, J.; O’Toole, M.; Wetzstein, G. Neural 3D holography: Learning accurate wave propagation models for 3D holographic virtual and augmented reality displays. ACM Trans. Graph. 2021, 40, 240. [Google Scholar] [CrossRef]
- Yue, Y.; Iwasaki, K.; Chen, B.Y.; Dobashi, Y.; Nishita, T. Poisson-based continuous surface generation for goal-based caustics. ACM Trans. Graph. 2014, 33, 1–7. [Google Scholar] [CrossRef]
- Brunet, D.; Vrscay, E.R.; Wang, Z. On the mathematical properties of the structural similarity index. IEEE Trans. Image Process. 2012, 21, 1488–1499. [Google Scholar] [CrossRef] [PubMed]
- Setiadi, D.R.I.M. PSNR vs SSIM: Imperceptibility quality assessment for image steganography. Multimed. Tools Appl. 2021, 80, 8423–8444. [Google Scholar] [CrossRef]







Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Liu, J.; Jiang, P.; Yang, H.; Wang, D.; Wang, P.; Zhou, W. A Fast Autofocus System Based on the Advancement of the CGH Algorithm. Photonics 2026, 13, 70. https://doi.org/10.3390/photonics13010070
Liu J, Jiang P, Yang H, Wang D, Wang P, Zhou W. A Fast Autofocus System Based on the Advancement of the CGH Algorithm. Photonics. 2026; 13(1):70. https://doi.org/10.3390/photonics13010070
Chicago/Turabian StyleLiu, Jianing, Ping Jiang, Huajun Yang, Dongying Wang, Pengjie Wang, and Weiwei Zhou. 2026. "A Fast Autofocus System Based on the Advancement of the CGH Algorithm" Photonics 13, no. 1: 70. https://doi.org/10.3390/photonics13010070
APA StyleLiu, J., Jiang, P., Yang, H., Wang, D., Wang, P., & Zhou, W. (2026). A Fast Autofocus System Based on the Advancement of the CGH Algorithm. Photonics, 13(1), 70. https://doi.org/10.3390/photonics13010070

