Skip to content

Basic structure-from-motion (SfM) with bundle-adjustment.

Notifications You must be signed in to change notification settings

ankur-rc/structure_from_motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Structure from Motion

Given a sequence of images, estimates the 3D structure of the scene (sparse point cloud) and the relative motion between each image.

Compile

$ mkdir build && cd build
$ cmake .. 
$ make -j

Use ccmake to further tweak options.

Usage

$ usage: GLOG_logtostderr=1 ./sfm downsample fx fy dataset
                   
  downsample: (int) scaling factor for images (increases performance for values greater than 1)
  fx        : (double) focal length in 'px' 
              -> calculated as image_width(px)*focal_length(mm)/sensor_width(mm)
  fy        : (double) focal length in 'px' 
              -> calculated as image_height(px)*focal_length(mm)/sensor_height(mm)
  dataset   : (string) path to dataset directory
  

Dependency

  • OpenCV 3.3
  • Eigen 3.3
  • Boost 1.69
  • Ceres 1.14
  • PCL 1.7

About

Basic structure-from-motion (SfM) with bundle-adjustment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published