Abstract
Weighted median filtering is a fundamental operator in a great variety of image processing and computer graphics applications. This paper presents a novel real-time weighted median filter which smoothes out high-frequency details while preserving major edges. We define a new 4D bilateral grid by incorporating the 3D bilateral grid with an additional range dimension. The edge-aware weights and the weighted median values are computed in the 4D space. The proposed algorithm is highly parallel, enabling real-time GPU-based edge-aware implementation. Experimental results show that our algorithm can be run efficiently in real-time on modern GPUs. Applications including JPEG artifact removal and image stylization are demonstrated to verify the feasibility of the proposed weighted median filtering algorithm.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Chen, J., Paris, S., Durand, F.: Real-time edge-aware image processing with the bilateral grid. ACM Trans. Graph. 26(3), 103 (2007)
Cline, D., White, K.B., Egbert, P.K.: Fast 8-bit median filtering based on separability. In: ICIP (2007)
He, K., Sun, J., Tang, X.: Guided image filtering. In: Daniilidis, K., Maragos, P., Paragios, N. (eds.) ECCV 2010, Part I. LNCS, vol. 6311, pp. 1–14. Springer, Heidelberg (2010)
Huang, T., Yang, G., Tang, G.: A fast two-dimensional median filtering algorithm. IEEE Trans. Acoust. Speech Sig. Process. 27(1), 13–18 (1979)
Kass, M., Solomon, J.: Smoothed local histogram filters. ACM Trans. Graph. 29(4), 100 (2010)
Ma, Z., He, K., Wei, Y., Sun, J., Wu, E.: Constant time weightedmedian filtering for stereo matching and beyond. In: Proceedings of 2013 IEEE International Conference on Computer Vision, ICCV 13, pp. 49–56. IEEE Computer Society, Washington, DC, USA (2013)
NVIDIA Corp.: CUDA Programming Guide, Version 7.5 (2015). https://developer.nvidia.com/cuda-toolkit
Paris, S., Durand, F.: A fast approximation of the bilateral filter using a signal processing approach. In: Proceedings of European Conference on Computer Vision (2006)
Perreault, S., Hébert, P.: Median filtering in constant time. IEEE Trans. Image Process. 16, 2389–2394 (2007)
Rhemann, C., Hosni, A., Bleyer, M., Rother, C., Gelautz, M.: Fast cost-volume filtering for visual correspondence and beyond. In: CVPR (2011)
Tomasi, C., Manduchi, R.: Bilateral filtering for gray andcolor images. In: Proceedings of 6th International Conferenceon Computer Vision, ICCV 98, pp. 839–846. IEEEComputer Society, Washington, DC, USA (1998)
Tukey, J.W.: Exploratory Data Analysis. Addison-Wesley, Reading (1977)
Weiss, B.: Fast median and bilateral filtering. ACM Trans. Graph. 25, 519–526 (2006)
Yang, Q.: Recursive bilateral filtering. In: Fitzgibbon, A., Lazebnik, S., Perona, P., Sato, Y., Schmid, C. (eds.) ECCV 2012, Part I. LNCS, vol. 7572, pp. 399–413. Springer, Heidelberg (2012)
Yang, Q., Ahuja, N., Tan, K.H.: Costant time median and bilateral filtering. Int. J. Comput. Vis. 112, 307–318 (2015)
Yin, L., Yang, R., Gabbouj, M., Neuvo, Y.: Weighted median filters: a tutorial. IEEE Trans. Circuits Syst. II 43(3), 157–192 (1996)
Zhang, Q., Xu, L., Jia, J.: 100+ times faster weighted medianfilter (WMF). In: Proceedings of 2014 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 14, pp. 2830–2837. IEEE Computer Society, Washington, DC, USA (2014)
Kang, H., Lee, S., Chui, C.K.: Coherent line drawing. In: Proceedings of NPAR 2007, pp. 43–50. ACM, New York (2007)
Zhao, H., Jin, X., Shen, J., Mao, X., Feng, J.: Real-time feature-aware video abstraction. Vis. Comput. 24(7–9), 727–734 (2008). (Special Issue of CGI 2008)
Acknowledgements
This work was supported by the National Natural Science Foundation of China (Grant No. 61100146), the Zhejiang Provincial Natural Science Foundation of China (Grant No. LY15F020019), the Science and Technology Planning Project of Wenzhou, China (Grant No. G20150019), and the Open Project Program of the State Key Lab of CAD&CG (Grant No. A1610), Zhejiang University. We gratefully acknowledge the support of NVIDIA Corporation with the donation of the GeForce GTX Titan X GPU used for this research.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing Switzerland
About this paper
Cite this paper
Zhao, H., Gao, D., Wang, M., Pan, Z. (2016). Real-Time Weighted Median Filtering with the Edge-Aware 4D Bilateral Grid. In: El Rhalibi, A., Tian, F., Pan, Z., Liu, B. (eds) E-Learning and Games. Edutainment 2016. Lecture Notes in Computer Science(), vol 9654. Springer, Cham. https://doi.org/10.1007/978-3-319-40259-8_11
Download citation
DOI: https://doi.org/10.1007/978-3-319-40259-8_11
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-40258-1
Online ISBN: 978-3-319-40259-8
eBook Packages: Computer ScienceComputer Science (R0)