Abstract
The recently proposed matting Laplacian (Levin et al., IEEE Trans. Pattern Anal. Mach. Intell. 30(2):228–242, 2008) has been proven to be a state-of-the-art method for solving the image matting problem. Using this method, matting is formulated as solving a high-order linear system which is hard-constrained by the input trimap. The main drawback of this method, however, is the high computational cost. As the size of the input image increases, the matting Laplacian becomes expensive to solve in terms of both memory and computational time.
In this paper we propose a GPU-based matting Laplacian solution which is dramatically faster than a conventional CPU solution, and at the same time largely reduces the memory consumption, making this method practical for the first time for high resolution image matting. To achieve this end, we employ a novel hierarchical windowing scheme to approximate the global optimal solution by solving a serial of local regions at multiple scales. We further employ a GPU-based local solver which can efficiently evaluate local solutions under various boundary conditions. Experimental results show that our system in general is more than two orders of magnitude faster than traditional CPU-based solvers, with about 80% less memory footprint.
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.References
Agarwala, A.: Efficient gradient-domain compositing using quadtrees. ACM Trans. Graph. 26(3), 94–98 (2007)
Harris, M.: Optimizing parallel reduction in CUDA. Tech. Rep., NVIDIA Corporation (2007)
Levin, A., Lischinski, D., Weiss, Y.: A closed-form solution to natural image matting. IEEE Trans. Pattern Anal. Mach. Intell. 30(2), 228–242 (2008)
NVIDIA: NVIDIA CUDA: Compute unified device architecture. NVIDIA Corporation (2008)
Rhemann, C., Rother, C., Wang, J., Gelautz, M., Kohli, P., Rott, P.: A perceptually motivated online benchmark for image matting. In: Proc. of IEEE CVPR, pp. 1826–1833 (2009)
Saad, Y.: Iterative Methods for Sparse Linear Systems, 2nd edn. Society for Industrial and Applied Mathematics, Philadelphia (2003)
Szeliski, R.: Locally adapted hierarchical basis preconditioning. ACM Trans. Graph. 25(3), 1135–1143 (2006)
Wang, J., Agrawala, M., Cohen, M.: Soft scissors: An interactive tool for realtime high quality matting. In: Proc. of ACM SIGGRAPH, pp. 9–14 (2007)
Wang, J., Cohen, M.: Optimized color sampling for robust matting. In: Proc. of IEEE CVPR, pp. 1–8
Wang, J., Cohen, M.: Image and video matting: A survey. Found. Trends Comput. Graph. Vis. 3(2), 97–175 (2007)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Huang, M., Liu, F. & Wu, E. A GPU-based matting Laplacian solver for high resolution image matting. Vis Comput 26, 943–950 (2010). https://doi.org/10.1007/s00371-010-0435-0
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00371-010-0435-0