title: How do I use OpenCV MatchTemplate?
body: <p>I'm attempting to find an image in another. </p>
  
  <pre><code>im = cv.LoadImage('1.png', cv.CV_LOAD_IMAGE_UNCHANGED)
      tmp = cv.LoadImage('e1.png', cv.CV_LOAD_IMAGE_UNCHANGED)
      w,h = cv.GetSize(im)
      W,H = cv.GetSize(tmp)
      width = w-W+1
      height = h-H+1
      result = cv.CreateImage((width, height), 32, 1)
      cv.MatchTemplate(im, tmp, result, cv.CV_TM_SQDIFF)
      print result
  </code></pre>
  
  <p>When I run this, everything executes just fine, no errors get thrown. But I'm unsure what to do from here. The doc says that <code>result</code> stores "A map of comparison results". I tried printing it, but it gives me width, height, and step. </p>
  
  <p>How do I use this information to find whether or not one image is in another/where it is located? </p>