This is a collection of visual odometry alogorithms.
Estimate the Essential matrix from given 2D-2D pixel correspondences using the eight-point algorithm [1, 2]. The correspondences are generated synthetically by projecting a 3D point cloud (shown in red) into two camera images. The relative pose between the cameras is recovered (up to scale) by factorizing the essential matrix which yields four potential solutions (two rotation matrices and two translation vectors). The correct solution for the pose is selected using the positive depth constraint: all reconstruced points (shown in blue) must lie in front of both cameras.
- Install Open3D: http://open3d.org/docs/compilation.html
- Clone the repository:
git clone https://github.com/francisengelmann/visual_odometry.git
- Compile:
mkdir build && cd build && cmake .. && make -j
[1] Hartley and Zisserman "Multiple View Geometry in Computer Vision", Cambridge University Press, 2004.
[2] Ma, Soatto, Kosecka, Sastry "An Invitation to 3-D Vision: From Images to Geometric Models, Springer, 2004.