计算机应用 ›› 2011, Vol. 31 ›› Issue (11): 3008-3009.DOI: 10.3724/SP.J.1087.2011.03008

• 图形图像技术 • 上一篇    下一篇

基于改进的灰度对比度函数的自动对焦方法

黄伟琼,游林儒,刘少君   

  1. 华南理工大学 自动化科学与工程学院,广州 510640
  • 收稿日期:2011-05-30 修回日期:2011-07-08 发布日期:2011-11-16 出版日期:2011-11-01
  • 通讯作者: 黄伟琼
  • 作者简介:黄伟琼(1985-),女,福建漳州人,硕士研究生,主要研究方向:计算机视觉;游林儒 (1956-),男,福建龙岩人,博士生导师,主要研究方向:嵌入式系统及信号处理、电力电子技术与运动控制;刘少君(1973-),男,湖南张家界人,讲师,主要研究方向:数控系统、机器视觉。

Automatic focusing algorithm based on improved gray contrast function

HUANG Wei-qiong,YOU Lin-ru,LIU Shao-jun   

  1. College of Automation Science and Engineering, South China University of Technology, Guangzhou Guangdong 510640, China
  • Received:2011-05-30 Revised:2011-07-08 Online:2011-11-16 Published:2011-11-01
  • Contact: HUANG Wei-qiong

摘要: 在影像测量仪的自动对焦系统中,针对影像测量快速精确的要求,对灰度对比度函数进行改进。利用正焦图像比离焦图像灰度变化过渡范围小的特点,通过计算灰度平均变化值,结合灰度变化次数进行对焦。实验对比表明,这种改进的灰度对比度函数,计算时间复杂度较简单,对焦灵敏度高。在影像测量仪的自动对焦系统中,比其他方法具有更快的对焦速度和更高的对焦准确度,且具有良好的稳定性。

关键词: 影像测量, 自动对焦, 灰度对比度函数, 灰度平均变化值, 灰度变化次数

Abstract: To meet the fast and accurate requirement of image measurement in the auto-focusing system of image measurement instrument, gray contrast function was improved as following: by making use of the features that the focus image has smaller range of the gray scale transition than the defocused image and calculating the average change in gray value, focusing was reached with the number of changes in gray-scale. The comparison shows that the improved gray scale contrast function has simpler time computational complexity and higher focusing sensitivity. The improved function, with good stability, has faster focusing speed and higher focusing accuracy than other methods in the auto-focusing system of image measurement instrument.

Key words: image measurement, automatic focusing, gray contrast function, average value of gradient, number of changes in gray-scale

中图分类号: