Take a dozen tourist snapshots of a cathedral. Every image is flat — a rectangle of pixels with no depth information. Yet a computer can, from those images alone, reconstruct a 3D point cloud of the building: the position of every stone corner, the lean of every column, even the rough distance between cameras.
The method is called Structure from Motion (SfM). The key insight is that motion creates parallax: when the same point in the world appears in two photos taken from different positions, the shift in its pixel location encodes the geometry of the scene. Collect enough of those shifts and you can solve for both the 3D positions of the scene points and the pose (position and orientation) of every camera — simultaneously.
There is a catch. The joint estimation of camera poses and scene geometry is a nonconvex optimization problem. The algorithm alternates between incremental reconstruction and a global refinement called bundle adjustment, whose cost landscape is riddled with local minima. Getting a globally good solution is not guaranteed, and the problem grows quickly as more images are added.
Comments
Loading comments...