Skip to main content
Log in

A comparison of contrast measurements in passive autofocus systems for low contrast images

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

A number of contrast measurements have been investigated and compared in the literature. Each of them exhibits an ideal curve with a well defined peak standing for the best focused image. However, a focused image obtained in low light conditions possesses a small contrast value, which may be easily influenced by noise. In this case, contrast measurements may generate fluctuant curves with many local peaks. This paper presents a comparison among six contrast measurements in passive autofocus systems towards a non-previously researched object of low contrast images. The criterium to evaluate the performance of each measurement is unimodality. And we assess the similarity of the resulting curves with an ideal focus curve which exhibits a single peak and an absence of plateau. Experimental results from six typical image sequences indicate that Tenengrad and CMAN approaches yield the best performance, but it is still necessary to derive a more elaborated method because both methods fail to generate a single sharp peak in some circumstances.

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. Aslantas V, Kurban R (2009) A comparison of criterion functions for fusion of multi-focus noisy images. Opt Commun 282:3231–3242

    Article  Google Scholar 

  2. Baina J, Dublet J (1995) Automatic focus and iris control for video cameras. In: The fifth international conference on image processing and its applications, pp 232–235

  3. Bilen H, Hocaoglu MA, Unel Mu, Sabanovic A (2012) Developing robust vision modules for microsystems applications. Mach Vis Appl 23:25–42

    Article  Google Scholar 

  4. Brown RA, Lauzon ML, Frayne R (2010) A general description of linear time-frequency transforms and formulation of a fast, invertible transform that samples the continuous S-transform spectrum nonredundantly. IEEE Trans Signal Process 58:281–290

    Article  MathSciNet  Google Scholar 

  5. Chen CY, Hwang RC, Chen YJ (2010) A passive auto-focus camera control system. Appl Soft Comput 10:296–303

    Article  Google Scholar 

  6. Chern NK, Neow PA, Ang MH (2001) Practical issues in pixel-based autofocusing for machine vision. In: Proceedings of IEEE international conference on robotics and automation, pp 2791–2796

  7. Davies ER (1990) Machine vision: theory. Algorithms practicalities. Academic Press

  8. Firestone L, Cook K, Culp K, Talsania N, Preston K (1991) Comparison of autofocus methods for automated microscopy. Cytometry 12:195–206

    Article  Google Scholar 

  9. Gamadia M, Kehtarnavaz N, Roberts-Hoffman K (2007) Low-light auto-focus enhancement for digital and cell-phone camera image pipelines. IEEE Trans Consum Electron 53:249–257

    Article  Google Scholar 

  10. Groen FCA, Young IT, Ligthart G (1985) A comparison of different autofocus algorithms. Cytometry 6:81–91

    Article  Google Scholar 

  11. Huang PW, Chen CI, Lin PL (2009) Multi-focus image fusion based on salient edge information within adaptive focus-measuring windows. In: IEEE International conference on systems, man, and cybernetics, pp 2589–2594

  12. Huang W, Jing Z (2007) Evaluation of focus measures in multi-focus image fusion. Pattern Recogn Lett 28:493–500

    Article  Google Scholar 

  13. Kehtarnavaz N, Oh HJ (2003) Development and real-time implementation of a rule-based auto-focus algorithm. Real-Time Imaging 9:197–203

    Article  Google Scholar 

  14. Krotkov E (1987) Focusing. Int J Comput Vis 1:223–237

    Article  Google Scholar 

  15. Lee S, Park S, Kim C, Kumar Y, Kim S (2006) Low-power auto focus algorithm using modified DCT for the mobile phones. In: International conference on consumer electronics, pp 67–68

  16. Lee SY, Kumar Y, Cho JM, Lee SW, Kim SW (2008) Enhanced autofocus algorithm using robust focus measure and fuzzy reasoning. IEEE Trans Circuits Syst Video Technol 18:1237–1246

    Article  Google Scholar 

  17. Li J (2005) Autofocus searching algorithm considering human visual system limitations. Opt Eng 44:113201

    Article  Google Scholar 

  18. Lorenzo J, Deniz O, Castrillon M, Guerra C (2007) Comparison of focus measures in a face detection environment. In: The 4th international conference on informatics in control, automation and robotics, pp 418–423

  19. Luo Y, Ward RK (2003) Removing the blocking artifacts of block-based DCT compressed images. IEEE Trans Image Process 12:838–842

    Article  Google Scholar 

  20. Mahmood MT, Choi TS (2010) Focus measure based on the energy of high-frequency components in the S transform. Opt Lett 35:1272–1274

    Article  Google Scholar 

  21. Mahmood MT, Shim SO, Choi TS (2009) Shape from focus using principal component analysis in discrete wavelet transform. Opt Eng 48:057203

    Article  Google Scholar 

  22. Malik AS, Choi TS (2007) Consideration of illumination effects and optimization of window size for accurate calculation of depth map for 3D shape recovery. Pattern Recogn 40:154–170

    Article  MATH  Google Scholar 

  23. Nayar SK, Nakagawa Y (1994) Shape from focus. IEEE Trans Pattern Anal Mach Intell 16:824–831

    Article  Google Scholar 

  24. Nercessian S, Agaian SS, Panetta KA (2012) Multi-scale image enhancement using a second derivative-like measure of contrast. Proc SPIE 8259:82950Q

    Google Scholar 

  25. Ni J, Wei M, Yuan J, Wu Q (2009) Efficient auto-focus algorithm for optical measurement system. Proc SPIE 7283:728344

    Article  Google Scholar 

  26. Peddigari V, Gamadia M, Kehtarnavaz N (2005) Real-time implementation issues in passive automatic focusing for digital still cameras. J Imaging Sci Technol 49:114–123

    Google Scholar 

  27. Shen C, Chen H (2006) Robust focus measure for low contrast images. In: International conference on consumer electronics, pp 69–70

  28. Shih L (2007) Autofocus survey: a comparison of algorithms. Proc SPIE 6502:65020B

    Google Scholar 

  29. Subbarao M, Tyan JK (1998) Selecting the optimal focus measure for autofocusing and depth-from-focus. IEEE Trans Pattern Anal Mach Intell 20:864–870

    Article  Google Scholar 

  30. Sun Y, Duthaler S, Nelson BJ(2004) Autofocusing in computer microscopy: selecting the optimal focus algorithm. Microsc Res Tech 65:139–149

    Article  Google Scholar 

  31. Tang J, Xu X (2009) An automatic focus algorithm for still and video camera applications using a new contrast measure. Proc SPIE 7498:74984X

    Article  Google Scholar 

  32. Tian J, Chen L, Ma L, Yu W (2011) Multi-focus image fusion using a bilateral gradient-based sharpness criterion. Opt Commun 284:80–87

    Article  Google Scholar 

  33. Xu X, Wang Y, Tang J, Zhang X, Liu X (2011) Robust automatic focus algorithm for low contrast images using a new contrast measure. Sensors 11:8281–8294

    Article  Google Scholar 

Download references

Acknowledgements

This work was supported in part by the Young Scientists Foundation of Wuhan University of Science and Technology (2012xz013), the Program of Wuhan Subject Chief Scientist (201150530152), the Educational Commission of Hubei Province (Q20101101, Q20101110), the project from Hubei Provincial Natural Science Funds for Distinguished Young Scholar of China (No. 2010CDA090), the project from Wuhan Chen Guang Project (No. 201150431095), the Program for Outstanding Young Science and Technology Innovation Teams in Higher Education Institutions of Hubei Province (No. T201202), and the Natural Science Foundation of China (60803160, 60975031, 61100055).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xin Xu.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Xu, X., Wang, Y., Zhang, X. et al. A comparison of contrast measurements in passive autofocus systems for low contrast images. Multimed Tools Appl 69, 139–156 (2014). https://doi.org/10.1007/s11042-012-1194-x

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-012-1194-x

Keywords

Navigation