overlapping template matching test pi values precision improved