A robust coarse-to-fine autofocus algorithm for thermal imaging systems overcoming local maxima
DOI:
https://doi.org/10.54939/1859-1043.j.mst.115.2026.118-124Keywords:
Thermal camera, Autofocus, Focus measure operator, Tenengrad, Local maxima, Dynamic thresholdAbstract
Autofocus performance in mid-wave infrared (MWIR) thermal imaging systems is often degraded by false convergence of conventional hill-climbing methods caused by local maxima in focus measure curves. This paper proposes a robust autofocus enhancement framework that improves the reliability of hill-climbing autofocus by introducing a scene-dependent dynamic threshold mechanism based on the relative transition behavior of consecutive Tenengrad focus values. Combined with a coarse-to-fine search strategy, the proposed method enables reliable focus region localization and accurate focus refinement. Experimental evaluations on five representative thermal scenes with 80 repeated autofocus trials demonstrate that the proposed approach improves convergence robustness and reduces unnecessary motor movements compared with the conventional hill-climbing method.
References
[1]. Rashid, M. A. Khan, M. A. Khan et al., “Passive autofocusing system for a thermal camera”, IEEE Access, Vol. 8, pp. 131753–131763, (2020). DOI: 10.1109/ACCESS.2020.3006356.
[2]. K. Srivastava and N. Kandpal, “Cumulative gradient based image sharpness evaluation algorithm for auto focus control of thermal imagers”, Proceedings of the 12th International Conference on Quantitative InfraRed Thermography (QIRT), (2015). DOI: 10.21611/qirt.2015.0070.
[3]. T. Teng, C. Guan, X. Wang, H. Fan, D. Ju and Z. Chi, “Autofocus optical imaging system based on image processing”, Proceedings of SPIE, Vol. 12764, (2023). DOI: 10.1117/12.3007706.
[4]. Y. Zhang et al., “Autofocus system and evaluation methodologies: A literature review”, Sensors and Materials, Vol. 30, No. 5, pp. 1165–1180, (2018). DOI: 10.18494/SAM.2018.1785.
[5]. M. Faundez-Zanuy, J. Mekyska and V. Espinosa-Duró, “On the focusing of thermal images”, Pattern Recognition Letters, Vol. 32, No. 11, pp. 1548–1557, (2011). DOI: 10.1016/j.patrec.2011.04.022.
[6]. M. Subbarao and J.-K. Tyan, “Selecting the optimal focus measure for autofocusing and depth-from-focus”, IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 20, No. 8, pp. 864–870, (1998). DOI: 10.1109/34.709612.
[7]. S. Pertuz, D. Puig and M. A. Garcia, “Analysis of focus measure operators for shape-from-focus”, Pattern Recognition, Vol. 46, No. 5, pp. 1415–1432, (2013). DOI: 10.1016/j.patcog.2012.11.011.
[8]. J. M. Mateos-Pérez et al., “Comparative evaluation of autofocus algorithms for a real-time system for automatic detection of Mycobacterium tuberculosis”, Cytometry Part A, Vol. 81A, No. 3, pp. 213–221, (2012). DOI: 10.1002/cyto.a.22020.
[9]. C.-T. Liu, Z.-X. He, Y. Zhan and H.-C. Li, “Searching algorithm of theodolite auto-focusing based on compound focal judgment”, EURASIP Journal on Wireless Communications and Networking, Vol. 2014, Art. No. 110, (2014). DOI: 10.1186/1687-1499-2014-110.
[10]. S. Sun, Y. Yang, B. Yang, A. Wan and H. Zhong, “Research and implementation of infrared lens auto-focus technology based on field programmable gate array”, Infrared Technology, Vol. 43, No. 5, pp. 464–472, (2021).
[11]. A. Wolf, J. E. Pezoa and M. Figueroa, “Modeling and compensating temperature-dependent non-uniformity noise in IR microbolometer cameras”, Sensors, Vol. 16, No. 7, Art. No. 1121, (2016). DOI: 10.3390/s16071121.
