What is the difference between template matching and object detection? Is the only difference that the template is typically rectangular while the objects can be of any form (including rectangular)?

Clearly, there are some specific techniques that are typically associated with template matching, such as a combination of SIFT (to find the features in the template and in the image) and RANSAC (to find e.g. a homography that maps the template to one of the parts of the image).

  • 1
    $\begingroup$ I would have said object detection is the general problem, and template matching is just one way to do object detection. $\endgroup$ – Peter K. May 21 at 0:51
  • $\begingroup$ @PeterK. So, what kinds of techniques are "template matching" techniques? $\endgroup$ – nbro May 21 at 16:29
  • $\begingroup$ Template matching is template matching. There are variants on it, but you have something you're looking for (the template) and you look for it (matching). I'm not quite sure what you're asking in "kinds of techniques". Object detection is a more generalized problem than template matching. $\endgroup$ – Peter K. May 21 at 19:06
  • $\begingroup$ @PeterK. Sorry. I meant what kinds of techniques are used to solve the "template matching" problem that are not part of solutions to other sub-problems of object detection? Are template matching techniques/solutions only a combination of SIFT-like feature dection + feature matching (e.g. with k-NN)? Is this what we mean by template matching techniques? $\endgroup$ – nbro May 21 at 19:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.