Skip to content

BenJamesbabala/3d-reconstruction-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D-Reconstruction

"3D reconstruction using Epipolar geometry"

Given two different images of the same scene from two different viewpoints, the 3D structure of the object is constructed using Epipolar geometry which uses Fundamental matrix, Essential matrix and Triangulation methods. The project is a work on an existing dataset "Temple of the Dioskouroi". The step by step walkthrough of the process is given in my page.

Code structure

/data - contains two images, intrinsic matrices of the camera used, and some correspondence points
/src - Matlab code
/results - screenshots of the output

/src/eightpoint.m
Eight point algorithm implementation.

/src/sevenpoint.m
Seven point algorithm implementation.

src/essentialMatrix.m
Converts Fundamental matrix into the Essential matrix using two camera intrinsic matrices.

src/camera2.m
Creates four possible extrinsic matrices of camera-2 using the Essential matrix.

src/triangulate.m
Triangulates and creates 3D points using two camera matrices and correspondence points.

src/findM2.m
Chooses the right camera matrix that estimates 3D points with all positive z-index.

src/epipolarCorrespondence.m
Compute (x2,y2) given (x1,y1) using Fundamental matrix to only scan along the epipolar line.

Please feel free to contact me to know more about the project and code.

About

3D reconstruction using epipolar geometry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages