Abstract
Bokeh, a sought-after photo rendering style of out-of-focus blur, typically aims at an esthetic quality which is not available to low-end consumer-grade cameras due to the lens design. We present a bokeh simulation method using stereo-vision techniques. We refine a depth map obtained by stereo matching, also using some minor user interaction. Overexposed regions are recovered according to depth information. A depth-aware bokeh effect is then applied with user-adjustable apertures sizes or shapes. We also simulate swirly bokeh, also known as cat-eye effect. Our method mainly aims at the visual quality of the bokeh effect rather than (so far) at time efficiency. Experiments show that our results are natural looking and that they can be comparable to bokeh effects achieved with expensive real-world bokeh-capable camera systems.
Similar content being viewed by others
References
Abbott, J., Morse, B.: Interactive depth-aware effects for stereo image editing. In: Proceedings of the 3D vision, pp. 263–270 (2013)
Demers, J.: Depth of field: a survey of techniques. GPU Gems 1(375), U390 (2004)
He, S.: How to customize heart bokeh (aperture) for the camera? DIY tutorial. www.youtube.com/watch?v=he_RUMxo-H8 (2013)
Hirschmüller, H.: Accurate and efficient stereo processing by semi-global matching and mutual information. Proc. Comput. Vis. Pattern Recogn. 2, 807–814 (2005)
Kopf, J., Cohen, M.F., Lischinski, D., Uyttendaele, M.: Joint bilateral upsampling. ACM Trans. Graph. 26, 96 (2007)
Klette, R.: Concise Computer Vision: An Introduction into Theory and Algorithms. Springer, London (2014)
Klette, R., Rosenfeld, A.: Digital Geometry: Geometric Methods for Digital Picture Analysis. Morgan Kaufmann, San Francisco (2004)
Kraus, M., Strengert, M.: Depth-of-field rendering by pyramidal image processing. Comput. Graph. Forum 26, 645–654 (2007)
Lee, S., Eisemann, E., Seidel, H.-P.: Depth-of-field rendering with multiview synthesis. ACM Trans. Graph. 28, 134 (2009)
Lee, S., Eisemann, E., Seidel, H.-P.: Real-time lens blur effects and focus control. ACM Trans. Graph. 29, 65 (2010)
Lee, S., Jounghyun Kim, G., Choi, S.: Real-time depth-of-field rendering using anisotropically filtered mipmap interpolation. IEEE Trans. Vis. Comput. Graph. 15, 453–464 (2009)
Lee, S., Kim, G.J., Choi, S.: Real-time depth-of-field rendering using point splatting on per-pixel layers. Comput. Graph. Forum 27, 1955–1962 (2008)
Levin, A., Lischinski, D., Weiss, Y.: A closed-form solution to natural image matting. IEEE Trans. Pattern Anal. Mach. Intell. 30, 228–242 (2008)
Liu, J., Gong, X., Liu, J.: Guided inpainting and filtering for Kinect depth maps. In: Proceedings of International Conference on Pattern Recognition, pp. 2055–2058 (2012)
Liu, D., Nicolescu, R., Klette, R.: Bokeh effects based on stereo vision. In: Proceedings of Computer Analysis of Images and Patterns, pp. 198–210 (2015)
Liu, S., Lai, P., Tian, D., Gomila, C., Chen, C.W.: Joint trilateral filtering for depth map compression. In: Proceedings of Visual Communications and Image Processing, No. 77440F (2010)
Matsuo, T., Fukushima, N., Ishibashi, Y.: Weighted joint bilateral filter with slope depth compensation filter for depth map refinement. In: Proceedings of International Conference Computer Vision Theory and Applications, pp. 300–309 (2013)
Mowery, A.: Create the famed Petzval swirly bokeh with your lens for cheap. www.diyphotography.net/create-famed-petzval-swirly-bokeh-lens-cheap/ (2015)
Petschnigg, G., Szeliski, R., Agrawala, M., Cohen, M., Hoppe, H., Toyama, K.: Digital photography with flash and no-flash image pairs. ACM Trans. Graph. 23, 664–672 (2004)
Rockwell, K.: Nikon Lens Bokeh Comparison. www.kenrockwell.com/nikon/bokeh-comparison.htm (2006)
Rockwell, K.: Bokeh. www.kenrockwell.com/tech/bokeh.htm (2008)
Wang, Q., Yu, Z., Rasmussen, C., Yu, J.: Stereo vision-based depth of field rendering on a mobile device. J. Electron. Imaging 23, 023009 (2014)
Wu, J., Zheng, C., Hu, X., Wang, Y., Zhang, L.: Realistic rendering of bokeh effect based on optical aberrations. Vis. Comput. 26, 555–563 (2010)
Xue, W., Zhang, X., Sheng, B., Ma, L.: Image-based depth-of-field rendering with non-local means filtering. In: Proceedings of International Conference Multimedia Expo Workshops, pp. 1–6 (2013)
Yu, X., Wang, R., Yu, J.: Real-time depth of field rendering via dynamic light field generation and filtering. Comput. Graph. Forum 29, 2099–2107 (2010)
Yu, Z., Yu, X., Thorpe, C., Grauer-Gray, S., Li, F., Yu, J.: Racking focus and tracking focus on live video streams: a stereo solution. Vis. Comput. 30, 45–58 (2014)
Zhang, W., Cham, W.-K.: Single image focus editing. In: Proceedings of International Conference Computer Vision Workshops, pp. 1947–1954 (2009)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Liu, D., Nicolescu, R. & Klette, R. Stereo-based bokeh effects for photography. Machine Vision and Applications 27, 1325–1337 (2016). https://doi.org/10.1007/s00138-016-0775-5
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00138-016-0775-5