计算机应用 ›› 2009, Vol. 29 ›› Issue (07): 1914-1917.

• 多媒体与软件技术 • 上一篇    下一篇

基于互相关边界特性和图像积分的快速模板匹配算法

吴小洪,钟石明   

  1. 广东工业大学
  • 收稿日期:2009-01-06 修回日期:2009-02-19 发布日期:2009-07-01 出版日期:2009-07-01
  • 通讯作者: 钟石明
  • 基金资助:

    国家级基金;省部级基金;市级基金

Fast template matching algorithm based on boundary cross correlation and image integration

  • Received:2009-01-06 Revised:2009-02-19 Online:2009-07-01 Published:2009-07-01

摘要:

基于归一化算法求解相似度原理,提出了综合利用互相关的边界条件和图像积分计算相似度的快速算法,在不降低匹配精度的前提下较大地提高了匹配速度。计算相似度时,归一化算法需要计算各位置的自相关值和互相关值,本算法先只计算自相关值,再利用Holder不等式原理,结合给定的边界阈值,剔除不满足条件的位置,减少其对应的互相关值计算。应用图像的积分进行匹配在于整个图像的积分可以在匹配之前进行计算,而在匹配过程中每一个子区域的自相关可以通过图像积分快速求得。本算法已在焊线机芯片识别系统中应用,结果表明该算法匹配的速度快而又不降低匹配精度,具有实际应用价值。

关键词: 互相关边界特性;自相关;Holder不等式;图像积分;模板匹配

Abstract:

A fast template matching algorithm was presented based on the theory of normalize cross correlation (NCC). With the goal of accelerating the matching speed and yielding exactly the same result as other matching methods,it is applied to calculate the similarity of bounded cross correlation and image integration. In this process, NCC must calculate cross correlation and selfcorrelation at each point. Self-correlation was calculated only first and then Holder inequality was applied. With the given threshold, it can remove the unsatisfied point, and reduce the complex computation of cross correlation, significantly accelerate template matching. The advantage of image integration is in the process of matching the integration of sub-image can be obtained quickly by the integration of the whole image calculated before matching. The proposed algorithm has been applied in the wire-bonder image recognition system, and the experiment results show that template matching algorithm is of fast speed and high accuracy and this algorithm has practical value.

Key words: boundary cross correlation;self-correlation;Holder inequality;image integration;template matching

中图分类号: