Computing a homography between two images