Improved cross-correlation for template matching on the Laplacian pyramid