
第22卷第1期 2014年1月
文章编号
1004-924X(2014)01-022008
光学精密工程
Optics and Precision Engineering
简单图像的快速聚焦陈芳1,张存继,韩延祥",史金飞2(1.东南大学机械工程学院,江苏南京211189;
2.南京工程学院,江苏南京211167)
Vol. 22No.1
Jan,2014
摘要:为了有效地实现简单图像的快速高精度自动聚焦,提出了一种新的快连聚焦算法。首先在相机进行调焦时自动获取系列零件图像,并记录各图像对应的位置;然后计算每张图像中目标边缘的灰度变化跨度值,从中找到跨度值最小的图像,即为最清晰图像;最后把其所在位置反馈给硬件驱动系统,实现自动聚焦。用新算法分别对不同形状和不同材料的零件,在添加根盐噪声和没有添加噪声的情况下进行实验,并与计算量小的几种经典最优聚焦函数做了对比试验。结果表明,用新算法对简单图像进行聚焦比常用的最优聚焦函数更敏锐,单峰性更好,抗噪能力更强,而且速度比最快的绝对梯度函数快30%以上。因此,新算法在拍摄简单场景时,鲁棒性好,可以更好地实现快速聚焦。
关
词:自动聚焦;目标边埠,跨度值,聚焦函数;鲁棒性键
中图分类号:TP391.4
文献标识码:A
doi;10. 3788/OPE. 20142201.0220
Fastfocusonsimpleimages
CHEN Fang'·,ZHANG Cun-ji',HAN Yan-xiang',SHI Jin-fei
(1.School of Mechanical Engineering,SoutheastUniversity,Nanjing 21l189,China;
2.Nanjing Institute of Technology,Nanjing 211167,China)
*Correspondingauthor,E-mail;fchen@seu.edu.cn
Abstract: To quickly realize the autofocus of a simple image and further improve the efficiency of auto-mated part fabrication, a novel fast focusing algorithm was proposed according to the characters of im-ages with single and clear backgrounds and foregrounds. Firstly, a series of part images including their position information were acquired. Then, all variance grey span values of target edges in each image were calculated automatically and the minimum span value of the clearest image was found quickly. Finally, the position information of the clearest image was feedbacked to a hardware driving system to complete the autofocus. An experiment on several parts with different shapes or materials was performed and obtained results were compared with that of the classic optimal focus function, The experimental results on those images added with salt-and-pepper noises demonstrate that the new algo-rithm is not only more sensitive but also has stronger unimodality and stronger anti-noise ability than those of classic optimum algorithms, Moreover,its computing speed is more than 30% faster than that
收稿日期:2013-05-13;修订日期:2013-06-08.
基金项目:国家自然科学基金资助项目(No.51275090);江苏省科技成果转化专项资金资助项目(No.BA2010093);
江苏省科技支撑计划资助项目(No.BE2008081)