Using the convention that the origin is the top-left corner of each image as shown on the webpage, dx = (target x) - (template x) = 0.21 pixels dy = (target y) - (template y) = -4.21 pixels