Auto-focusing algorithm based on cross correlation
-
摘要: 针对自动聚焦系统,提出了基于互相关的自动聚焦算法.分析了传统自动聚焦算法在速度和精度方面存在的不足,引入互相关原理,定义基于互相关的模板相关算法FTC.由于选择模板图像的不同,实验的结果不同,进而导致自动聚焦分析的算法也不相同.根据模板图像和实验结果,得出该算法存在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.
-
Key words:
- auto-focusing /
- cross correlation /
- correlation theory
-
[1] Sun Y, Duthaler S, J Nelson B. Auto-focusing in computer microscopy:selecting the optimal focus algorithm[J]. Microscopy Research and Technique, 2004, 65:139~149 [2] 孙明磊,宗光华,余志伟,等.基于图像分析的显微视觉自动聚焦系统 . 北京航空航天大学学报, 2005,31(2) :192~196 Sun Minglei, Zong Guanghua, Yu Zhiwei, %et al%. Automatic focusing system of micro to vision based on image analysis[J]. Journal of Beijing University of Aeronautics and Astronautics, 2005,31(2):192~196(in Chinese) [3] 祝世平,房建成,周 锐,一种新的能量谱-熵图像聚焦评价函数[J].北京航空航天大学学报, 1999,25(6):720~723 Zhu Shiping, Fang Jiancheng, Zhou Rui. New kind of energy-spectrum entropy image focusing evaluation function[J]. Journal of Beijing University of Aeronautics and Astronautics, 1999, 25(6):720~723(in Chinese) [4] 任四刚,李见为,谢利利.基于灰度差分法的自动聚焦技术[J].光电工程,2003, 30(2):53~55 Ren Sigang, Li Jianwei, Xie Lili. Automatic focusing technique based on gray scale difference method[J]. Opto to Electronic Engineering,2003 ,30 (2) :53~55(in Chinese) [5] 谢 攀,张 利,康宗明,等. 一种基于尺度变化的DCT自动聚焦算法[J]. 清华大学学报(自然科学版),2003,43(1):55~58 Xie Pan, Zhang Li, Kang Zongming, %et al%. Window scale-based automatic focus algorithm using DCT transformation[J]. J Tsinghua Univ(Sci & Tech), 2003, 43(1):55~58(in Chinese) [6] Chen Guojin, Zhang Kesong, Gong Ye. Research on image definition function using in real time auto-focusing system . In:Zhang Guangjun, Zhao Huijie, Wang Zhongyu. Fifth International Symposium on Instrumentation and Control Technology . Beijing, 2003 [7] Hughlett E, Cooper K. A video based alignment system for X-ray lithography . SPIE Sympos on Microlithography . Beijing,1991
点击查看大图
计量
- 文章访问数: 3165
- HTML全文浏览量: 159
- PDF下载量: 925
- 被引次数: 0