A GPU-based matting Laplacian solver for high resolution image matting
- 240 Downloads
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.
KeywordsImage matting Matting Laplacian Conjugate gradient solver GPU
Unable to display preview. Download preview PDF.
- 2.Harris, M.: Optimizing parallel reduction in CUDA. Tech. Rep., NVIDIA Corporation (2007) Google Scholar
- 4.NVIDIA: NVIDIA CUDA: Compute unified device architecture. NVIDIA Corporation (2008) Google Scholar
- 5.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) Google Scholar
- 8.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) Google Scholar
- 9.Wang, J., Cohen, M.: Optimized color sampling for robust matting. In: Proc. of IEEE CVPR, pp. 1–8 Google Scholar