基于背景先验点的虚焦抠图方法
Defocus Matting on Background Blur Priors
DOI: 10.12677/AIRR.2012.11002, PDF, HTML, 下载: 3,407  浏览: 13,197  国家自然科学基金支持
作者: 姚桂林, 姚鸿勋:哈尔滨工业大学计算机科学与技术学院
关键词: 图像抠图背景先验边缘检测模糊扩展Image Matting; Background Prior; Edge Detection; Blur Magnification
摘要: 本文针对图像抠图问题中背景虚焦时的情况,将一些模糊的背景预划分成先验点,使之成为绝对背景,进而避免了与前景颜色相近背景的干扰,使得抠图结果更为理想。首先,采用边缘检测器进行边缘检测,进而对每个边缘点进行分析,根据其对二阶算子的响应值与理想响应值之间的拟合误差,以及它与已知前景之间的颜色差异,判断其是否为被模糊的背景边缘点;然后再计算它沿梯度正负方向两侧的像素与理想化边缘之间的拟合误差,根据阈值可以将两侧的若干点扩展成背景先验点集,即将它们划分为绝对背景点。最后利用与trimap扩展相结合的抠图方式,得到最终的透明度图像。实验结果表明,本文提出的背景先验点与抠图算法,可以得到相对于以往的抠图算法更好的结果。
Abstract: In this paper, we present a matting method based on focused foreground and blurred background. We classify some pixels as priors to prevent the similarities between foreground and background colors. Firstly, we design a three-channel edge detector to roughly predict some edge pixels. Secondly, for each edge pixel, we estimate its blur degree by fitting an ideal second derivative filter response on the actual one along the gradient direction, and comparing its color and known foreground one. Thirdly, if this pixel is classified into a blurred background edge, we extend it along the gradient direction as blur priors according to the fitting errors to an ideal blurred edge. Finally, with the back-ground blur priors, we run a general matting algorithm along with a trimap expansion method. The experimental results show that our background blur priors could generate much more precise alpha results than the state-of-art algorithms.
文章引用:姚桂林, 姚鸿勋. 基于背景先验点的虚焦抠图方法[J]. 人工智能与机器人研究, 2012, 1(1): 6-14. http://dx.doi.org/10.12677/AIRR.2012.11002

参考文献

[1] A. R. Smith, J. F. Blinn. Blue screen matting. ACM Transactions on Graphics (TOG), 1996: 259-268.
[2] J. Sun, Y. Li, S. B. Kang and H.-Y. Shum. Flash matting. ACM Transactions on Graphics (TOG), 2006, 25(3): 772-778.
[3] J. Wang, M. Cohen. Simultaneous matting and compositing. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2007.
[4] N. Joshi, W. Matusik and S. Avidan. Natural video matting using camera arrays. ACM Transactions on Graphics (TOG), 2006: 779-786.
[5] M. McGuire, W. Matusik, H. Pfister, J. F. Hughes and F. Durand. Defocus video matting. ACM Transactions on Graphics (TOG), 2005: 567-576.
[6] C. Rhemann, C. Rother, P. Kohli and M. Gelautz. A spatially varying psf-based prior for Alpha matting. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2010: 2149- 2156.
[7] J. Elder, S. Zucker. Local scale control for edge detection and blur estimation. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 1998, 20(7): 699-716.
[8] S. Bae, F. Durand. Defocus magnification. Proceedings of Eurographics, 2007.
[9] G. L. Yao, H. X. Yao. Trimap expansion based Alpha matting via localized windows. Technical Re-port, 2012.
[10] J. Wang, M. Cohen. Optimized color sampling for robust mat- ting. IEEE Conference on Computer Vision and Pattern Recog- nition (CVPR), 2007: 1-8.
[11] C. Rhemann, C. Rother and M. Gelautz. Improving color modeling for alpha matting. Proceedings of British Machine Vision Conference (BMVC), 2009: 1155-1164.
[12] C. Rhemann, C. Rother, J. Wang, M. Gelautz, P. Kohli and P. Rott. A perceptually motivated online benchmark for image matting. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009: 1826-1833.
[13] Z. P. Zhang, Q. S. Zhu and Y. Q. Xie. Learning based Alpha mat- ting using support vector regression. IEEE International Confer- ence on Imaging Processing (ICIP), 2012.
[14] E. Gastal, M. Oliveira. Shared sampling for real time alpha matting. Proceedings of Eurographics, 2010, 29(2): 575-584.
[15] K. He, C. Rhemann, C. Rother, X. Tang and J. Sun. A global sampling method for alpha matting. IEEE Conference on Com- puter Vision and Pattern Recognition (CVPR), 2011: 2049-2056.
[16] A. Levin, D. Lischinski and Y. Weiss. A closed-form solution to natural image matting. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2007, 30(1): 228-242.