Learning Latent Transmission and Glare Maps for Lens Veiling Glare Removal
Xiaolong Qian, Qi Jiang, Lei Sun, Zongxi Yu, Kailun Yang, Peixuan Wu, Jiacheng Zhou, Yao Gao, Yaoguang Ma, Ming-Hsuan Yang, Kaiwei Wang
Abstract
Beyond the commonly recognized optical aberrations, the imaging performance of simplified optical systems--including single-lens and metalens designs--is often further degraded by veiling glare caused by stray-light scattering from non-ideal optical surfaces and coatings, particularly in complex real-world environments. This compound degradation undermines traditional lens aberration correction yet remains underexplored. A major challenge is that conventional scattering models (e.g., for dehazing) fail to fit veiling glare due to its spatial-varying and depth-independent nature. Consequently, paired high-quality data are difficult to prepare via simulation, hindering application of data-driven veiling glare removal models. To this end, we propose VeilGen, a generative model that learns to simulate veiling glare by estimating its underlying optical transmission and glare maps in an unsupervised manner from target images, regularized by Stable Diffusion (SD)-based priors. VeilGen enables paired dataset generation with realistic compound degradation of optical aberrations and veiling glare, while also providing the estimated latent optical transmission and glare maps to guide the veiling glare removal process. We further introduce DeVeiler, a restoration network trained with a reversibility constraint, which utilizes the predicted latent maps to guide an inverse process of the learned scattering model. Extensive experiments on challenging simplified optical systems demonstrate that our approach delivers superior restoration quality and physical fidelity compared with existing methods. These suggest that VeilGen reliably synthesizes realistic veiling glare, and its learned latent maps effectively guide the restoration process in DeVeiler. All code and datasets will be publicly released at https://github.com/XiaolongQian/DeVeiler.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on19
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Exploring CLIP for Assessing the Look and Feel of ImagesJianyi Wang, Kelvin C. K. Chan, Chen Change LoyAAAI 2023 · 1,208 citations
- Q-Align: Teaching LMMs for Visual Scoring via Discrete Text-Defined LevelsHaoning Wu, Zicheng Zhang, Weixia Zhang, Chaofeng Chen et al.ICML 2024 · 499 citations
- How to Train Neural Networks for Flare RemovalYicheng Wu, Qiurui He, Tianfan Xue, Rahul Garg et al.ICCV 2021 · 97 citations
Related papers
- Disentangle Nighttime Lens Flares: Self-supervised Generation-based Lens Flare RemovalYuwen He, Wei Wang, Wanyu Wu, Kui JiangAAAI 2025 · 4 citations
- PBFG: A New Physically-Based Dataset and Removal of Lens Flares and GlaresJie Zhu, Sungkil LeeICCV 2025 · 4 citations
- Learning To Restore Hazy Video: A New Real-World Dataset and a New MethodXinyi Zhang, Hang Dong, Jinshan Pan, Chao Zhu et al.CVPR 2021
- Self-augmented Unpaired Image Dehazing via Density and Depth DecompositionYang Yang, Chaoyue Wang, Risheng Liu, Lin Zhang et al.CVPR 2022 · 281 citations
- Learning Hazing to Dehazing: Towards Realistic Haze Generation for Real-World Image DehazingRuiyi Wang, Yushuo Zheng, Zicheng Zhang, Chunyi Li et al.CVPR 2025
