Faster image template matching in the sum of the absolute value of differences measure

被引:49
作者
Atallah, MJ [1 ]
机构
[1] Purdue Univ, CERIAS, W Lafayette, IN 47907 USA
[2] Purdue Univ, Dept Comp Sci, W Lafayette, IN 47907 USA
基金
美国国家科学基金会;
关键词
algorithms; convolution; image professing; template matching;
D O I
10.1109/83.913600
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Given an m x m image I and a smaller m x n image P, the computation of an (m - n + 1) X (m - n + 1) matrix C where C(i, j) is of the form C(i, j) = Sigma (n-1)(k=0) Sigma (n-1)(k ' =0) f(I(i + k, j + k '), P(k, k ')), 0 less than or equal toi, j less than or equal to m - n for some function f, is often used in template matching. Frequent choices for the function f are f(x, y) = (x - y)(2) and f(x, y) = \x - y\. For the case when f(x, y) = (x - y)(2), it is well known that C is computable in O(m(2) log n) time. For the case f(a:, y) = la: - yl, on the other hand, the brute force O((m - n + 1)(2)n(2)) time algorithm for computing C seems to be the best known. This paper gives an asymptotically Easter algorithm for computing C when f(x, y) = \x - y\, one that runs in time O(min{s, n/root logn}m(2) log n) time, where s is the size of the alphabet, i.e., the number of distinct symbols that appear in I and P. This is achieved by combining two algorithms, one of which runs in O(sm(2) log n) time, the other in O(m(2)n root log n) time. We also give a simple Monte Carlo algorithm that runs in O(m(2) log n) time and gives unbiased estimates of C.
引用
收藏
页码:659 / 663
页数:5
相关论文
共 14 条
[1]   GENERALIZED STRING MATCHING [J].
ABRAHAMSON, K .
SIAM JOURNAL ON COMPUTING, 1987, 16 (06) :1039-1051
[2]   A randomized algorithm for approximate string matching [J].
Atallah, MJ ;
Chyzak, F ;
Dumas, P .
ALGORITHMICA, 2001, 29 (03) :468-486
[3]   SIMILARITY MEASURES IN COMPUTER VISION [J].
BONINSEGNA, M ;
ROSSI, M .
PATTERN RECOGNITION LETTERS, 1994, 15 (12) :1255-1260
[4]   ACCELERATED TEMPLATE MATCHING USING TEMPLATE TREES GROWN BY CONDENSATION [J].
BROWN, RL .
IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS, 1995, 25 (03) :523-528
[5]  
CASTLEMAN K. R., 1996, Digital image processing
[6]  
Crochemore M., 1994, TEXT ALGORITHMS
[7]  
Gonzalez R.C., 1992, DIGITAL IMAGE PROCES
[8]  
Inglis S., 1994, Proceedings DCC '94. Data Compression Conference (Cat. No.94TH0626-2), P106, DOI 10.1109/DCC.1994.305918
[9]  
Jain AK., 1989, Fundamentals of Digital Image Processing
[10]  
KOSARAJU SR, UNPUB EFFICIENT STRI