Skip to main navigation Skip to search Skip to main content

Let Your Light Shine: Foreground Portrait Matting via Deep Flash Priors

  • Tianyi Xiang
  • , Yangyang Xu*
  • , Qingxuan Hu
  • , Chenyi Zi
  • , Nanxuan Zhao
  • , Junle Wang
  • , Shengfeng He*
  • *Corresponding author for this work

Research output: Journal Publications and ReviewsRGC 21 - Publication in refereed journalpeer-review

Abstract

In this paper, we delve into a new perspective to solve image matting by revealing the foreground with flash priors. Previous Background Matting frameworks require a clean background as input, and although demonstrated powerfully, they are not practical to handle real-world scenarios with dynamic camera or background movement. We introduce the flash/no-flash image pair to portray the foreground object while eliminating the influence of dynamic background. The rationale behind this is that the foreground object is closer to the camera and thus received more light than the background. We propose a cascaded end-to-end network to integrate flash prior knowledge into the alpha matte estimation process. Particularly, a transformer-based Foreground Correlation Module is presented to connect foregrounds exposed in different lightings, which can effectively filter out the perturbation from the dynamic background and also robust to foreground motion. The initial prediction is concatenated with a Boundary Matting Network to polish the details of previous predictions. To supplement the training and evaluation of our flash/no-flash framework, we construct the first flash/no-flash portrait image matting dataset with 3,025 well-annotated alpha mattes. Experimental evaluations show that our proposed model significantly outperforms existing trimap-free matting methods on scenes with dynamic backgrounds. Moreover, we detailedly discuss and analyze the effects of different prior knowledge on static and dynamic backgrounds. In contrast to the restricted scenarios of Background Matting, we demonstrate a flexible and reliable solution in real-world cases with the camera or background movements.

© 2025 Transactions on Machine Learning Research
Original languageEnglish
Number of pages31
JournalTransactions on Machine Learning Research
Publication statusPublished - Dec 2025

Bibliographical note

Publisher Copyright:
© 2025, Transactions on Machine Learning Research. All rights reserved.

Funding

This research is supported by the Guangdong Natural Science Funds for Distinguished Young Scholars (Grant 2023B1515020097), Natural Science Foundation of Guangdong Province (2023A1515012894), Key R&D Project of Guangzhou Science and Technology Plan (2023B01J0002), National Natural Science Foundation of China (Grant No.: 62502117). And the National Research Foundation Singapore under its AI Singapore Programme (AISG Award No: AISG3-GV-2023-011), the National Research Foundation Singapore under the AI Singapore Programme (AISG Award No: AISG4-TC-2025- 018-SGKR), the Ministry of Education, Singapore, under its Academic Research Fund Tier 2 (Award No. MOE-T2EP20125-0016), the Ministry of Education, Singapore, under its Academic Research Fund Tier 1 (Award No. MSS25C004), the National Natural Science Foundation of China (Grant No.: 62502117), the Shenzhen Natural Science Foundation (No. JCYJ20250604145532041), and the Lee Kong Chian Fellowships

Fingerprint

Dive into the research topics of 'Let Your Light Shine: Foreground Portrait Matting via Deep Flash Priors'. Together they form a unique fingerprint.

Cite this