The geometry of the photo stitching problem is well understood, and consists of estimating the 3×3 camera matrix for each image [9, 2]. Assuming the camera rotates around its optical center, the transformation H that the photos undergo can be modeled based on the three rotation angles [x, y, z] and the focal length f. RANSAC is applied to find geometrically consistent inliers in the matched pairs, Hij between images is then estimated by least squares fit with all the inliers.