Skip to main content
Log in

A simple gray-edge automatic white balance method with FPGA implementation

  • Special Issue
  • Published:
Journal of Real-Time Image Processing Aims and scope Submit manuscript

Abstract

Automatic white balance is one of the most important functions in digital cameras. In addition to effectively correct color bias, the automatic white balance technology should also be fit for resource-constrained hardware and meet its real-time requirements. Based on gray-edge hypothesis, this paper proposes a simple automatic white balance method using image horizontal down-sampling with the averaging filter and horizontal first-order difference on Bayer image, and discusses its algorithm flow on FPGA. The test results show that the proposed method can correct image color bias powerfully. Moreover, the analysis of resource usage on FPGA indicates that the method consumes less hardware resource and achieves high real-time capability, and its parameter selection is unrelated with resource consumption.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

Similar content being viewed by others

References

  1. Land, E.: The retinex theory of color vision. Sci. Am. 237(6), 108–128 (1977)

    Article  Google Scholar 

  2. Buchsbaum, G.: A spatial processor model for object colour perception. J. Frankl. Inst. 310(1), 1–26 (1980)

    Article  MathSciNet  Google Scholar 

  3. Van, D.W.J., Gevers, T., Gijsenij, A.: Edge-based color constancy. IEEE Trans. Image Process. 16(9), 2207–2214 (2007)

    Article  MathSciNet  Google Scholar 

  4. Finlayson, G., Schaefer, G.: Solving for colour constancy using a constrained dichromatic reflection model. Int. J. Comput. Vis. 42(3), 127–144 (2001)

    Article  MATH  Google Scholar 

  5. Forsyth, D.: A novel algorithm for color constancy. Int. J. Comput. Vis. 5(1), 5–36 (1990)

    Article  MathSciNet  Google Scholar 

  6. Finlayson, G., Hordley, S.: Gamut constrained illumination estimation. Int. J. Comput. Vis. 67(1), 93–109 (2006)

    Article  Google Scholar 

  7. Mosny, M., Funt, B.: Cubical gamut mapping colour constancy. In: Proceedings of IS&T Fifth European Conference on Color in Graphics, Imaging and Vision, Joensuu (2010)

  8. Cardei, V., Funt, B., Barnard, K.: Estimating the scene illumination chromaticity using a neural network. J. Opt. Soc. Am. A. 19(12), 2374–2386 (2002)

    Article  Google Scholar 

  9. Wang, N., Xu, D., Li, B.: Edge-based color constancy via support vector regression. IEICE Trans. Inf. Syst. 92(11), 2279–2282 (2009)

    Article  Google Scholar 

  10. Gijsenij, A., Gevers, T.: Color constancy using natural image statistics and scene semantics. IEEE Trans. Pattern Anal. Mach. Intell. 33(4), 687–698 (2011)

    Article  Google Scholar 

  11. Bianco, S., Ciocca, G., Cusano, C., Schettini, R.: Improving color constancy using indoor-outdoor image classification. IEEE Trans. Image Process. 17(12), 2381–2392 (2008)

    Article  MathSciNet  Google Scholar 

  12. Barnard, K., Martin, L., Coath, A., Funt, B.: A comparison of computational color constancy algorithms; part ii: experiments with image data. IEEE Trans. Image Process. 11(9), 985–996 (2002)

    Article  Google Scholar 

  13. Li, B., Xu, D., Xiong, W., Feng, S.: Color constancy using achromatic surface. Color Res. Appl. 35(4), 304–312 (2010)

    Article  Google Scholar 

  14. Huo, J., Chang, Y., Wang, J., Wei, X.: Robust automatic white balance algorithm using gray color points in images. IEEE Trans. Consum. Electron. 52(2), 541–546 (2006)

    Article  Google Scholar 

  15. Chen, H., Shen, C., Tsai, P.: Edge-based automatic white balancing with linear illuminant constraint. In: Proceedings of Visual Communications and Image Processing, San Jose (2007)

  16. Gijsenij, A., Gevers, T., Van D.W.J.: Physics-based edge evaluation for improved color constancy. In: Proceedings of IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Miami Beach, pp. 1–8 (2009)

  17. Gijsenij, A., Gevers, T., Van, D.W.J.: Improving color constancy by photometric edge weighting. IEEE Trans. Pattern Anal. Mach. Intell. 34(5), 918–929 (2012)

    Article  Google Scholar 

  18. Verhoeven, G.J.J.: It’s all about the format—unleashing the power of RAW aerial photography. Int. J. Remote Sens. 31(8), 2009–2042 (2010)

    Article  Google Scholar 

  19. Ramanath, R., Snyder, W.E., Yoo, Y., Drew, M.S.: Color image processing pipeline. IEEE Signal Process. Mag. 22(1), 34–43 (2005)

    Article  Google Scholar 

  20. Gijsenij, A., Gevers, T., Van, D.W.J.: Computational color constancy: survey and experiments. IEEE Trans. Image Process. 20(9), 2475–2489 (2011)

    Article  MathSciNet  Google Scholar 

  21. Kehtarnavaz, N., Kim, N., Gamadia, M.: Real-time auto white balancing for digital cameras using discrete wavelet transform-based scoring. J. Real-Time Image Process. 1(1), 89–97 (2006)

    Article  Google Scholar 

  22. Gijsenij, A., Gevers, T., Lucassen, M.P.: Perceptual analysis of distance measures for color constancy algorithms. J. Opt. Soc. Am. A. 26(10), 2243–2256 (2009)

    Article  Google Scholar 

  23. Gehler, P., Rother, C., Blake, A., Minka, T., Sharp, T.: Bayesian color constancy revisited. In: Proceedings of IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Snowbird, pp. 1–8 (2008)

  24. Finlayson, G., Trezzi, E.: Shades of gray and colour constancy. In: Proceedings of IS&T/SID 12th Color Imaging Conference, Scottsdale, pp. 37–41 (2004)

  25. Gijsenij, A., Gevers, T.: Color constancy research website on illumination estimation. http://colorconstancy.com

  26. Shi, L., Funt, B.: Re-processed version of the Gehler color constancy dataset of 568 images. http://www.cs.sfu.ca/~colour/data/

Download references

Acknowledgments

The author is grateful to Dr. Yu Liu for stimulating discussions. This work was supported in part by the National Natural Science Foundation (NSFC) of China under Grant No.61175006, No.61175015, No. 60803101 and No.60872150.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xin Tan.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Tan, X., Lai, S., Wang, B. et al. A simple gray-edge automatic white balance method with FPGA implementation. J Real-Time Image Proc 10, 207–217 (2015). https://doi.org/10.1007/s11554-012-0318-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11554-012-0318-x

Keywords

Navigation