Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Template matching

663 views

Published on

Vision with OF: https://www.udemy.com/vision-with-of/
This lecture is from the computer vision section of the course on udemy. Learn how to use various template matching algorithms such as squared difference, normalized square difference, correlation and correlation co-efficient for template matching. This technique can be modified for object detection and tracking.

Published in: Technology
  • Login to see the comments

  • Be the first to like this

Template matching

  1. 1. vision with of Add Vision to your Apps Hasan Ijaz October 31, 2015 EmbeddedLance
  2. 2. template matching
  3. 3. Template Matching Primary Components ∙ Source Image(I), Template Image(T), Metric 2
  4. 4. Result 3
  5. 5. cvMatchTemplate cvMatchTemplate ∙ source Image ∙ template Image ∙ result Image ∙ Metric ∙ CV_TM_SQDIFF, CV_TM_SQDIFF_NORMED, CV_TM_CCORR, CV_TM_CCORR_NORMED, CV_TM_CCOEFF and CV_TM_CCOEFF_NORMED 4
  6. 6. Metrics CV_TM_SQDIFF CV_TM_SQDIFF_NORMED 5
  7. 7. Metrics CV_TM_CCORR CV_TM_CCORR_NORMED 6
  8. 8. Metrics CV_TM_CCOEFF where CV_TM_CCOEFF_NORMED 7
  9. 9. You can now perform template matching with openFrameworks :) 8

×