“…Template matching is one of the most frequently used techniques in computer vision applications, such as video tracking [35,36,1,9], image mosaicing [25,6], object detection [12,10,34], character recognition [29,2,21,5], and 3D reconstruction [22,23,16]. Classic template matching methods often use sum-of-squared-differences (SSD) or normalized cross correlation (NCC) to calculate a similarity score between the template and the underlying image.…”