homography registration script