1. A method of aligning first and second images with a 3D reference model, comprising: gathering the first image from a first viewpoint; gathering the second image from a second viewpoint; aligning the first and second images with a 3D reference model, the image alignment comprising: computing prediction error information using the first and second images and the 3D reference model; and minimizing the prediction error.