Abstract
We present an object-cloning algorithm using constrained mean value interpolation over images. Different from previous methods, we first define the guidance vector field as a weighted gradient of the source and destination images in the gradient domain, which produces a similar Laplace equation to that of the original Poisson method but with different boundary conditions. Then, we use mean value coordinates to solve the new Laplace equation approximately instead of solving a large linear system. The cloned result matches well with the destination image on the luma and preserves the chroma of the source object as much as possible. Our cloned results are visually pleasing without smudging and discoloration artifacts. We also extend our approach to video object cloning. Experimental results demonstrate the effectiveness of our object cloning algorithm.
Similar content being viewed by others
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) (2007)
Levin, A., Lischinski, D., Weiss, Y.: A closed-form solution to natural image matting. In: Proceedings of IEEE CVPR (2006)
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)
Rhemann, C., Rother, C., Kohli, P., Gelautz, M.: A spatially varying PSF-based prior for alpha matting. In: Proceedings of IEEE CVPR (2010)
C. Corporation: Knockout User Guide (2002)
Guo, D., Sim, T.: Color me right-seamless image compositing. In: 13th Intl. Conf. on Computer Analysis of Images and Patterns (CAIP) (2009)
Gastal, E.S.L., Oliveira, M.M.: Shared sampling for real-time alpha matting. Comput. Graph. Forum 29(2), 575–584 (2010)
Floater, M.S., Kós, G., Reimers, M.: Mean value coordinates in 3D. Comput. Aided Geom. Des. 22(7), 623–631 (2005)
Wang, H.-C., Ramesh, R., Narendra, A.: Seamless video editing. In: ICPR’04: Proceedings of the Pattern Recognition, 17th International Conference on (ICPR’04), vol. 3, pp. 858–861 (2004)
Bolz, J., Farmer, I., Grinspun, E., Schröder, P.: Sparse matrix solvers on the GPU: conjugate gradients and multigrid. ACM Trans. Graph. 22, 917–924 (2003)
Jia, J., Sun, J., Tang, C.-K., Shum, H.-Y.: Drag-and-drop pasting. ACM Trans. Graph. 25(3), 631–637 (2006)
Manson, J., Schaefer, S.: Moving least squares coordinates. Comput. Graph. Forum 29(5), 1517–1524 (2010)
Mccann, J., Pollard, N.S.: Real-time gradient domain painting. ACM Trans. Graph. 27(3) (2008)
Sun, J., Jia, J., Tang, C.-K., Shum, H.-Y.: Poisson matting. ACM Trans. Graph. 23(3) (2004)
Wang, J., Cohen, M.F.: Optimized color sampling for robust matting. In: Proceedings of IEEE CVPR, pp. 1–8 (2007)
Lalonde, J.-F., Hoiem, D., Efros, A.A., Rother, C., Winn, J., Criminisi, A.: Photo clip art. ACM Trans. Graph. 26(3), 3 (2007). (SIGGRAPH 2007)
Hormann, K., Sukumar, N.: Maximum entropy coordinates for arbitrary polytopes. Comput. Graph. Forum 27(5), 1513–1520 (2008)
Sunkavalli, K., Micah, J., Matusik, W., Pfister, H.: Multi-scale image harmonization. ACM Trans. Graph. 29(4) (2010)
He, K.-M., Sun, J., Tang, X.: Fast matting using large kernel matting Laplacian matrices. In: Proceedings of IEEE CVPR, pp. 2165–2172 (2010)
Grady, L., Schiwietz, T., Aharon, S., Westermann, R.: Random walks for interactive alpha-matting. In: Proceedings of the Fifth IASTED International Conference on Visualization, Imaging and Image Processing, pp. 423–429 (2005)
Levin, A., Rav-Acha, A., Lischinski, D.: Spectral Matting (2007)
Bratkova, M., Boulos, S., Shirley, P.: oRGB: a practical opponent color space for computer graphics. IEEE Comput. Graph. Appl. 29(1), 42–55 (2009)
Ding, M., Tong, R.-F.: Content-aware copying and pasting in images. Vis. Comput. 26(6–8), 721–729 (2010)
Kazhdan, M., Hoppe, H.: Streaming multigrid for gradient-domain operations on large images. ACM Trans. Graph. 27(3) (2008)
Tao, M.W., Johnson, M.K., Paris, S.: Error-tolerant image compositing. In: European Conference on Computer Vision (2010)
Floater, M.S.: Mean value coordinates. Comput. Aided Geom. Des. 20(1), 19–27 (2003)
Pérez, P., Gangnet, M., Blake, A.: Poisson image editing. ACM Trans. Graph. 22(3), 313–318 (2003)
Szeliski, R.: Locally adapted hierarchical basis preconditioning. ACM Trans. Graph. 25, 1135–1143 (2006)
Wang, R., Chen, W.-F., Pan, M.-H., Bao, H.-J.: Harmonic coordinates for real-time image cloning. J. Zhejiang Univ. Sci. 11, 690–698 (2010)
Ruzon, M.A., Tomasi, C.: Alpha estimation in natural images. In: Proceedings of IEEE CVPR, pp. 18–25 (2000)
Jeschke, S., Cline, D., Wonka, P.: A GPU Laplacian solver for diffusion curves and Poisson image editing. ACM Trans. Graph. 28(5) (2009)
Lee, S.-Y., Lee, I.-K.: Improved coordinate-based image and video cloning algorithm. In: ACM SIGGRAPH Asia Posters (2009)
Chen, T., Cheng, M.-M., Tan, P., Shamir, A., Hu, S.-M.: Sketch2photo:internet image montage. ACM Transactions on Graphics 28(5), 124:1–124:10 (2009)
Ju, T., Schaefer, S., Joe, W.: Mean value coordinates for closed triangular meshes. ACM Trans. Graph. 24(3), 561–566 (2005)
Bai, X., Sapiro, G.: A geodesic framework for fast interactive image and video segmentation and matting. In: International Conference on Computer Vision (2007)
Bai, X., Wang, J., Simons, D., Sapiro, G.: Video snapcut: robust video object cutout using localized classifiers. ACM Trans. Graph. 28(3), 70:1–70:11 (2009)
Guan, Y., Chen, W., Liang, X., Ding, Z., Peng, Q.-S.: Easy matting—a stroke based approach for continuous image matting. Comput. Graph. Forum 25(3), 567–576 (2006)
Mishima, Y.: Soft edge chroma-key generation based upon hexoctahedral color space. US Patent 5,355,174 (1994)
Zhang, Y., Tong, R.-F.: Environment-sensitive cloning in images. Vis. Comput. 27, 739–748 (2011)
Zheng, Y.-J., Kambhamettu, C.: Learning based digital matting. In: International Conference on Computer Vision (2009)
Chuang, Y.-Y., Curless, B., Salesin, D.H., Szeliski, R.: A Bayesian approach to digital matting. In: Proceedings of IEEE CVPR, vol. 2, pp. 264–271 (2001)
Farbman, Z., Hoffer, G., Lipman, Y., Cohen-Or, D., Lischinski, D.: Coordinates for instant image cloning. ACM Trans. Graph. 28(3) (2009)
Xie, Z.-F., Shen, Y., Ma, L.-Z., Chen, Z.-H.: Seamless video composition using optimized mean-value cloning. Vis. Comput. 26(6–8), 1123–1134 (2010)
Acknowledgements
Xiaogang Jin was supported by Zhejiang Provincial Natural Science Foundation of China (Grant No. Z1110154), NSFC-MSRA Joint Funding (Grant No. 60970159), and the National Natural Science Foundation of China (Grant No. 60933007). Hui Du was supported by Zhejiang Provincial Science and Technology Planning Project (Grant No. 2010C31090) and Scientific Research Fund of Zhejiang Provincial Education Department (Grant No. Y201016221).
Author information
Authors and Affiliations
Corresponding author
Electronic Supplementary Material
Rights and permissions
About this article
Cite this article
Du, H., Jin, X. Object cloning using constrained mean value interpolation. Vis Comput 29, 217–229 (2013). https://doi.org/10.1007/s00371-012-0722-z
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00371-012-0722-z