Computing the homography of two images