Bi-affinity Filter: A Bilateral Type Filter for Color Images

  • Mithun Das Gupta
  • Jing Xiao
Part of the Lecture Notes in Computer Science book series (LNCS, volume 6554)


We propose a new filter called Bi-affinity filter for color images. This filter is similar in structure to the bilateral filter. The proposed filter is based on the color line model, which does not require the explicit conversion of the RGB values to perception based spaces such as CIELAB. The bi-affinity filter measures the affinity of a pixel to a small neighborhood around it and weighs the filter term accordingly. We show that this method can perform at par with standard bilateral filters for color images. The small edges of the image are usually enhanced leading to a very easy image enhancement filter.


Bilateral filter RGB color filtering image matting matting Laplacian 


  1. 1.
    Tomasi, C., Manduchi, R.: Bilateral filtering for gray and color images. In: ICCV 1998: Proceedings of the Sixth International Conference on Computer Vision, p. 839. IEEE Computer Society, Washington, DC (1998)Google Scholar
  2. 2.
    Wells III, W.: Efficient synthesis of gaussian filters by cascaded uniform filters. IEEE Trans. Pattern Anal. Mach. Intell. 8 (1986)Google Scholar
  3. 3.
    Geusebroek, J., Smeulders, A., van de Weijer, J.: Fast anisotropic gauss filtering. IEEE Transactions on Image Processing 12, 2003 (2002)Google Scholar
  4. 4.
    Lu, W.S., Wang, H.P., Antoniou, A.: Design of two-dimensional digital filters using the singular-value decomposition and balanced approximation method. IEEE Trans. Signal Process. 39, 2253–2262 (1991)CrossRefGoogle Scholar
  5. 5.
    Paris, S., Durand, F.: A Fast Approximation of the Bilateral Filter Using a Signal Processing Approach. In: Leonardis, A., Bischof, H., Pinz, A. (eds.) ECCV 2006. LNCS, vol. 3954, pp. 568–580. Springer, Heidelberg (2006)CrossRefGoogle Scholar
  6. 6.
    Porikli, F.: Constant time o(1) bilateral filtering. In: IEEE Conference on Computer Vision and Pattern Recognition, CVPR (2008)Google Scholar
  7. 7.
    Yang, Q., Tan, K.H., Ahuja, N.: Real-time o(1) bilateral filtering. In: IEEE Conference on Computer Vision and Pattern Recognition, CVPR (2009)Google Scholar
  8. 8.
    Omer, I., Werman, M.: Color lines: Image specific color representation. In: CVPR (2004)Google Scholar
  9. 9.
    Bando, Y., Chen, B.Y., Nishita, T.: Extracting depth and matte using a color-filtered aperture. ACM Transactions on Graphics 27, 134:1–134:9 (2008)CrossRefGoogle Scholar
  10. 10.
    Levin, A., Lischinski, D., Weiss, Y.: A closed form solution to natural image matting. In: CVPR (2006)Google Scholar
  11. 11.
    Bennett, E., Uyttendaele, M., Zitnick, C., Szeliski, R., Kang, S.: Video and Image Bayesian Demosaicing with a Two Color Image Prior. In: Leonardis, A., Bischof, H., Pinz, A. (eds.) ECCV 2006. LNCS, vol. 3951, pp. 508–521. Springer, Heidelberg (2006)CrossRefGoogle Scholar
  12. 12.
    Joshi, N., Zitnick, C., Szeliski, R., Kriegman, D.: Image deblurring and denoising using color priors. In: CVPR (2009)Google Scholar
  13. 13.
    Liu, C., Szeliski, R., Kang, S.B., Zitnick, C.L., Freeman, W.T.: Automatic estimation and removal of noise from a single image. PAMI 30, 299–314 (2008)CrossRefGoogle Scholar
  14. 14.
    Press, W.H., Teukolsky, S.A., Vetterling, W.T., Flannery, B.P.: Numerical recipes in C: the art of scientific computing, 2nd edn. Cambridge University Press, New York (1992)Google Scholar
  15. 15.
    Huang, T.S.: Transforms and median filters. In: Two-Dimensional Signal Processing II, pp. 209–211. Springer, Berlin (1981)CrossRefGoogle Scholar
  16. 16.
    Weiss, B.: Fast median and bilateral filtering. ACM Trans. Graph. 25, 519–526 (2006)CrossRefGoogle Scholar
  17. 17.
    Fattal, R.: Image upsampling via imposed edge statistics. In: SIGGRAPH (2007)Google Scholar
  18. 18.
    Irani, M., Peleg, S.: Motion analysis for image enhancement. In: JVCIP (1993)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  • Mithun Das Gupta
    • 1
  • Jing Xiao
    • 1
  1. 1.Epson Research and DevelopmentSan JoseUSA

Personalised recommendations