北京航空航天大学学报 ›› 2006, Vol. 32 ›› Issue (03): 306-310.

• 论文 • 上一篇    下一篇

基于互相关的自动聚焦方法

董代, 刘荣, 孙明磊, 宗光华   

  1. 北京航空航天大学 机械工程及自动化学院, 北京 100083
  • 收稿日期:2005-06-09 出版日期:2006-03-31 发布日期:2010-09-20
  • 作者简介:董 代(1980-),女,山东日照人,硕士生, mxgu1999@vip.sohu.com.
  • 基金资助:

    国家863基金资助项目(2004AA404260)

Auto-focusing algorithm based on cross correlation

Dong Dai, Liu Rong, Sun Minglei, Zong Guanghua   

  1. School of Mechanical Engineering and Automation, Beijing University of Aeronautics and Astronautics, Beijing 100083, China
  • Received:2005-06-09 Online:2006-03-31 Published:2010-09-20

摘要: 针对自动聚焦系统,提出了基于互相关的自动聚焦算法.分析了传统自动聚焦算法在速度和精度方面存在的不足,引入互相关原理,定义基于互相关的模板相关算法FTC.由于选择模板图像的不同,实验的结果不同,进而导致自动聚焦分析的算法也不相同.根据模板图像和实验结果,得出该算法存在2种形式——模板相关的第1种形式和第2种形式.模板图像为聚焦前位置图像,称为模板相关的第1种形式,该形式的实验曲线是由小到大,再减小的过程;模板图像为聚焦图像时,称为模板相关的第2种形式,该形式的实验曲线是由大到最小,再增大的过程.2种形式的图像处理实验结果,与其他几种主要聚焦评价函数(平方梯度函数,Brenner函数)进行比较,结果表明该算法简单,原理容易实现,实验曲线能避免各种波动,因此基于互相关的自动聚焦算法提高了自动聚焦的精度和速度.该算法应用于微流控芯片对准装配自动聚焦系统中,取得了良好的聚焦效果.

Abstract: Aiming auto-focusing system, auto-focus algorithm based on cross correlation was brought forward. The limitation of conventional auto-focusing in definition and velocity was analyzed. Correlation principle was introduced, and template correlation algorithm based on cross correlation was defined. Owing to difference of template image selected, the result of experimentation is different, so that auto-focus analysis algorithm is different. Based on different template image and the result of experimentation, two forms of correlation function were presented, including the first template correlation and the second template correlation. If the place of template image is before focusing, the form is named the first form, curve of which changes from small value to big, then to small, if the template image is focusing image, the form is named the second form, curve of which changes from big value to least, then to big. The result which two forms processes image was compared with the result of experimentation of other focus evaluating functions, such as square gradient function, correlation function. By experimentation comparison, it concludes that the auto-focusing algorithm based on cross correlation improves definition and velocity of auto-focusalgorithm. The algorithm has been successfully tested to be effective on micro-fluidic alignment assembly auto-focusing system. It shows that the algorithm has achieved better auto-focus effects.

中图分类号: 


版权所有 © 《北京航空航天大学学报》编辑部
通讯地址:北京市海淀区学院路37号 北京航空航天大学学报编辑部 邮编:100191 E-mail:jbuaa@buaa.edu.cn
本系统由北京玛格泰克科技发展有限公司设计开发