摘要
抠图算法作为计算机视觉和图像处理的关键技术,在影视特效、广告制作及虚拟现实等领域具有广泛应用。针对绿幕抠图算法中存在的精度与速度平衡问题和绿色溢出现象,提出了一种基于信息增强引导和双重绿色溢出抑制的实时抠图算法。该算法通过增强前景与背景差异以自动生成前景掩膜,并基于高频信息来引导优化掩膜;利用边缘采样迭代解混和主体颜色估计重建方法,对绿色溢出现象进行双重策略抑制。在三个数据集上的实验结果表明,该算法在掩膜精度和绿色溢出抑制等方面显著优于已有方法,其中AlphaMatte经典数据集上的平均绝对误差、均方误差、梯度误差和连通性误差分别为3.58、1.90、1.57和1.38。此外通过流水线架构和前帧计算近似的硬件加速优化,该算法在Xilinx XC7Z020 FPGA平台上能够支持1920×1080@122 fps视频流的实时处理。
Matting algorithm is regarded as a pivotal technology in computer vision and image processing,boasting wide applications in film and television special effects,advertising production,and virtual reality.In view of the balance of accuracy and speed,as well as the green spill issue in the green screen matting algorithm,this paper proposes a real-time matting algorithm based on information enhancement guidance and dual green spill suppression.The algorithm automatically generates a foreground mask by enhancing the contrast between the foreground and background and utilizes high-frequency information to guide the mask optimization.It adopts a dual-strategy approach for green spill suppression via edge sampling iterative de-mixing and subject color estimation reconstruction.Experimental results on three datasets demonstrate that this algorithm significantly outperforms existing methods in terms of mask accuracy and green spill suppression.On the AlphaMatte classical dataset,it achieves Mean Absolute Difference(MAD),Mean Squared Error(MSE),Gradient Error(GE),and Connectivity Error(CE)scores of 3.58,1.90,1.57,and 1.38,respectively.Additionally,through hardware acceleration optimization employing pipeline architecture and pre-frame computation approximation,the algorithm can support real-time processing of 1920×1080@122 fps video streams on the Xilinx XC7Z020 FPGA platform.
作者
李润熠
徐哲远
吴文浩
黄志恒
林哲
林志坚
LI Runyi;XU Zheyuan;WU Wenhao;HUANG Zhiheng;LIN Zhe;LIN Zhijian(College of Physics and Information Engineering,Fuzhou University,Fuzhou Fujian 350108,China)
出处
《河北省科学院学报》
2025年第4期1-10,共10页
Journal of The Hebei Academy of Sciences
基金
国家自然科学基金项目(62471140)。
关键词
绿幕抠图
信息增强引导
绿色溢出抑制
实时处理
Green screen matting
Information enhancement guidance
Green spill suppression
Real-time processing