title: Template Matching using FFT
body: <p>Can anyone please explain how to perform template matching using FFT. The template is smaller than the original image.
  1. Everywhere it states that the template has to be padded with zeros. How it is done. Is it added to the bottom and right of the image or equally around the entire image.</p>
  
  <p>Thanks in advance.</p>