3D Reconstruction from Scratch
An exercise to refresh my mind on theory from multi-view geometry and apply that knowledge. Main reference literature for this project was [1].
The first goal of this project is to provide a modular way to the 3D reconstruction problem. Any of the intermediate steps listed below can be replaced by different algorithms of the same task. The second goal is to write everything from scratch, i.e. using numpy only.
This pipeline can be extended for further downsteam tasks such as visual odometry via the already included state estimation and also for SLAM.
Feature Matching
- Corner detection (Shi-Tomasi)
- Feature descriptor (Histogram of Oriented Gradients)
- Finding feature correspondences
Determine Relativ Transformation of Cameras (Direct Approach)
- Computing fundamental matrix E from point correspondences using coplanarity constraint $x’^T E x’’ = 0$
- Solve least squares problem to find E
- From E can recover R, T but not the scale
Depth Reconstruction
- Recover the scaling by again leveraging a linear sytem of $n$ equations:
- Scaling is still only defined up to a global scale (cannot distinguish between camera having moved by $d$ or $2d$.)
[1] Ma, Y. and Soatto, S. and Koseck, J. and Sastry, S.S., An Invitation to 3-D Vision: From Images to Geometric Models. 2005. Springer New York.