The process involves solving the position of the camera, and then modelling the environment. The photo is then projected onto the environment so that the 3D camera can be animated.
I recently completed a course on photogrammetry – The process of solving a camera position in order to model the environment in the photo. The course was given my Paul McWilliams through CGSociety. I have posted some work in progress shots