title: Rotation and scale invariant template matching in OpenCV
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10666436/scale-and-rotation-template-matching">scale and rotation Template matching</a>  </p>
  </blockquote>
  
  
  
  <p>I have a template grayscale image , with white background and black shape over it. I also have several similar test images which vary in rotation and in shape. The test images are not same as template but they are similar.</p>
  
  <p>I want to compare these two images and see if template matches , is most similar to, any of the test images. There are no distortions , no noise and no other defects in the images. Are there any tutorials on this topic ?</p>