230 IEEE TRANSACTIONS ON SIGNAL PROCESSING, VOL. 51, NO. 1, JANUARY 2003
Fast Algorithm for Robust Template Matching
With M-Estimators
Jiun-Hung Chen, Chu-Song Chen, and Yong-Sheng Chen
Abstract—In this paper, we propose a fast algorithm for
speeding up the process of template matching that uses M-esti-
mators for dealing with outliers. We propose a particular image
hierarchy called the
-pyramid that can be exploited to generate
a list of ascending lower bounds of the minimal matching errors
when a nondecreasing robust error measure is adopted. Then,
the set of lower bounds can be used to prune the search of the
-pyramid, and a fast algorithm is thereby developed in this
paper. This fast algorithm ensures finding the global minimum of
the robust template matching problem in which a nondecreasing
M-estimator serves as an error measure. Experimental results
demonstrate the effectiveness of our method.
Index Terms—Fast algorithm, M-estimator, robust template
matching, template matching.
I. INTRODUCTION
F
INDING a pattern or template in a signal is an important
problem for signal and image processing. This so-called
template matching can be applied to many applications such
as image and video coding, pattern recognition, and visual
tracking. It is usually assumed in template matching that the
signal segments of interests do not change their appearances
very much. Hence, template matching based on the criteria
such as the sum of absolute difference (SAD) or the sum of
squared difference (SSD) is commonly adopted. The popularity
of using template matching for applications of signal or image
processing is mainly due to its ease of implementation together
with the many fast algorithms that can be used to speed up the
matching process for various applications [1], [7], [8], [13],
[15], [22], [25], [26], [28], [29], [35], [39].
In a cluttered environment, however, some outliers such
as impulse noises or partial occlusions may occur during
the matching processes. In this situation, the SAD and SSD
criteria are no longer suitable for template matching because
they treat the outliers and inliers evenly when calculating the
error measures. One possible remedy for this weakness is to
use a robust criterion instead of SAD or SSD. For this, the
M-estimator technique [2], [16], [30], [38] is one of the most
popular methods to solve the problem of robust parameter
estimation and has been applied in many studies [3]–[5],
Manuscript received October 17, 2001; revised August 14, 2002. This work
was supported in part by the National Science Council of Taiwan, R.O.C., under
Grants NSC 90-2213-E-001-033 and NSC91-2213-E-001-022. The associate
editor coordinating the review of this paper and approving it for publication
was Dr. Xiang-Gen Xia.
J.-H. Chen and C.-S. Chen are with the Institute of Information Science,
Academia Sinica, Taipei, Taiwan, R.O.C. (e-mail: song@iis.sinica.edu.tw).
Y.-S. Chen is with the Integrated Brain Research Laboratory, Department
Medical Research and Education, Taipei Veterans General Hospital, Taipei,
Taiwan, R.O.C.
Digital Object Identifier 10.1109/TSP.2002.806551
[11], [12], [14], [23], [31]–[33], [36]. The basic idea of the
M-estimator technique is to limit the influence of outliers in
the matching error. In principle, the effects of the outlier can be
suppressed with the M-estimator technique and therefore better
estimations are obtained.
A typical procedure for finding solutions with M-estimators
is the iterative-reweight procedure [30]. In each iteration of this
procedure, a weighted least-square problem is solved and then
the weights are adjusted for the next iteration for further refine-
ment. Hence, when applying the iterative-reweight procedure
for robust template matching, in each iteration, another template
matching problem must be solved based on a weighted SSD
error measure, in addition to which, multiple iterations are also
necessary. Therefore, the computation of robust error measures
is very time-consuming, although more accurate results can be
obtainedbyadopting a robusterrormeasureinsteadofnonrobust
ones.
1
In the past, many methods have been proposed to speed
up the matching process where the simple SAD or SSD criterion
is used. However, to our knowledge, no method has been ad-
dressed for speeding up the process of template matching where
robust error measures are used. In this paper, we propose a fast
method for solving this problem. We will present this method by
assuming that a two-dimensional (2-D) signal (e.g., an image) is
used. Nevertheless, our algorithm can be easily generalized for
any
-dimensional signal .
On the other hand, there are already many methods for
speeding up the process of template matching where nonrobust
error measures are used. These methods can be divided into
two classes. The methods in the first class only find a local
minimum while the ones in the second class definitely find
the global minimum. In principle, almost all the methods in
the first class formulate the template matching as a search
problem and find a solution by adopting the greedy strategy.
Examples include the three-step search algorithm [22], the
gradient-descent based method [29] and others [1], [8], [13],
[15], [28], [35], [39]. The genetic algorithm-based methods [8],
[28] or the simulated annealing-based method [35] may have
chances of finding the global minimum if their parameters are
set appropriately to the given problems, but can not ensure that
it will always be found. In essence, since these methods do
not guarantee finding the global minimum, they are generally
faster than those ensuring the global optimality.
The methods in the second class guarantee finding the global
minimum, and the main idea of this class is basically prune
and search [7], [25], [26]. Hence, the main issue of this class of
approaches is on how to design the search strategies for pruning
1
Another problem of the iterative-reweight procedure is that it can not defi-
nitely find the global optimum.
1053-587X/03$17.00 © 2003 IEEE
评论0
最新资源