光子学报, 2013, 42 (5): 605, 网络出版: 2013-05-22   

基于图像灰度梯度最大值累加的自动调焦算法

Auto Focusing Algorithm Based on Largest Gray Gradient Summation
作者单位
1 装备学院研究生院
2 装备学院光电装备系, 北京 101416
摘要
从光学系统出发介绍了基于图像处理的离焦图像成像原理,分析了传统基于灰度梯度的自动调焦算法的缺陷——灰度梯度考虑不全面并且易受噪音影响.针对传统算法不足,提出了基于图像灰度梯度最大值累加的自动调焦算法.该算法通过计算中心像素的八邻域灰度梯度,以自动聚焦区域内各像素最大灰度梯度与最大灰度与最小梯度差值乘积之和作为新的评价函数,分析了该算法可以抑制噪音影响的原理;介绍了焦点搜索自适应变步长爬山算法原理和实现过程;最后进行算法性能实验验证.首先,利用不同算法对序列图像和加入高斯噪音的图像进行清晰度评价,结果证明该算法对含噪图像的清晰度评价准确,与传统算法相比该算法在抑制噪音方面具有优越性;其次,用不同聚焦算法进行序列图像自动调焦实验,结果显示传统算法会出现错误聚焦的情况,而该算法聚焦准确迅速,相比于传统算法具有明显优势.
Abstract
The principle of defocused imaging was introduced based on optical system. The defects of classical auto focusing algorithms based on gray gradient were presented, which were not considering all the gray gradient and affected by noise easily. According to the defects of classical algorithms, a new auto focusing algorithm based on largest gray gradient summation was proposed, which was realized through adding the product of the maximum and the difference of the maximum and the minimum of the eight neighborhood gray gradient of each pixel in the selected auto focusing region. The principle of restraining noise of the new algorithm was discussed. The principle and progress of adaptive variable step climbing algorithm for focusing position searching were introduced. At last, experiments were carried out to test the performance of the new algorithm. Firstly, by calculating the definition value of the original and Gaussian noise added sequences images using new algorithm and classical algorithms, and comparing the results, the advantage of restraining noise of the new algorithm was proved, for using the new algorithm, the definition evaluation of noisy image was calculated better compared to all the other algorithms. Secondly, experiments of auto focusing using different algorithms were carried out, and the results showed that using classical algorithms might focus wrong, while the new algorithm could focus correct and rapidly, which was an obvious advantage comparing to classical algorithms.
参考文献

[1] 陈国金. 数字图像自动聚焦技术研究及系统实现[D]. 西安: 西安电子科技大学, 2007: 10-12.

    CHEN Guojin. Study on the autofocusing technology of digital image and realization for an autofocusing system[D]. Xi′an: Xidian University, 2007: 10-12.

[2] LI Qi, FENG Huajun, XU Zhihai. Autofocus apparatus with digital signal processor[C]. SPIE, 2005, 5633: 416-423.

[3] 高赞, 姜威, 朱孔凤,等. 一种自适应的自动聚焦算法[J]. 光学学报, 2006, 26(10): 1474-1478.

    GAO Zan, JIANG Wei, ZHU Kongfeng, et al. An autoadaptive algorithm to autoaocusing[J]. Acta Optica Sinica, 2006, 26(10): 1474-1478.

[4] 孙杰, 袁跃辉, 王传永. 数字图像处理自动聚焦算法的分析与比较[J]. 光学学报, 2007, 27(1): 35-39.

    SUN Jie, YUAN Yuehui, WANG Chuanyong. Comparison and analysis of algorithms for digital image processing in autofocusing criterion[J]. Acta Optica Sinica, 2007, 27(1): 35-39.

[5] NI Jun, WEI Min, YUAN Jiahu, et al. Efficient autofocus algorithm for optical measurement system[C]. SPIE, 2009, 7283: 728344.

[6] 韩瑞雨, 王晋僵. 聂凯,等. 不同对比度下自适应的自动调焦新算法[J]. 光子学报, 2012, 41(2): 222-227.

    HAN Ruiyu, WANG Jinjiang, NIE Kai, et al. Adaptive autofocus technique under different contrast[J]. Acta Photonica Sinica, 2012, 41(2): 222-227.

[7] 金雪, 马卫红. 图像调焦过程的清晰度评价函数研究[J]. 光学仪器, 2012, 34(1): 59-64.

    JIN Xue, MA Weihong. Study on image definition evaluation function in autofocusing process[J]. Optical Instruments. 2012, 34(1): 59-64.

[8] 王超, 蒋远大, 翟光杰,等. 基于数字图像处理的自控显微聚焦算法研究[J]. 仪器仪表学报, 2009, 30(6): 1290-1294.

    WANG Chao, JIANG Yuanda, ZHAI Guangjie, et al. Study on auto focusing algorithm for microscope base on digital image processing[J]. Chinese Journal of Scientific Instrument, 2009, 30(6): 1290-1294.

[9] 梁敏华, 吴志勇, 陈涛. 采用最大灰度梯度法实现经纬仪自动调焦控制[J]. 光学精密工程, 2009, 17(12): 3016-3021.

    LIANG Minhua, WU Zhiyong, CHEN Tao. Autofocusing adjustment of theodolites by largest gradient method[J]. Optics and Precision Engineering, 2009, 17(12): 3016-3021.

[10] 胡凤萍, 常义林, 马彦卓,等, 视频自动聚焦的实现研究[J]. 光子学报, 2010, 39(10): 1901-1906.

    HU Fengping, CHANG Yilin, MA Yanzhuo, et al. Development of video automatic focus method[J]. Acta Photonica Sinica, 2010, 39(10): 1901-1906.

[11] Joseph W. Goodman, 傅里叶光学导论[M]. 秦克诚, 刘培森, 陈家璧等译. 第3版 [M]北京: 电子工业出版社. 2006, 9: 114-116.

    GOODMAN J W. Introduction to fourier optics [M]. QIN Kecheng, LIU Peisen, CHEN Jiabi, et al. transl, 3rd ed. Beijing: Publishing House of Electronics Industry Press. 2006, 9: 114-116.

张来线, 孙华燕, 郭惠超, 范有臣. 基于图像灰度梯度最大值累加的自动调焦算法[J]. 光子学报, 2013, 42(5): 605. ZHANG Laixian, SUN Huayan, GUO Huichao, FAN Youchen. Auto Focusing Algorithm Based on Largest Gray Gradient Summation[J]. ACTA PHOTONICA SINICA, 2013, 42(5): 605.

本文已被 18 篇论文引用
被引统计数据来源于中国光学期刊网
引用该论文: TXT   |   EndNote

相关论文

加载中...

关于本站 Cookie 的使用提示

中国光学期刊网使用基于 cookie 的技术来更好地为您提供各项服务,点击此处了解我们的隐私策略。 如您需继续使用本网站,请您授权我们使用本地 cookie 来保存部分信息。
全站搜索
您最值得信赖的光电行业旗舰网络服务平台!