Skip to content

I write a simple Gaussian Newton method , and use Bundle Adjustment to optimize the pose.

Notifications You must be signed in to change notification settings

sjwaabc/BundleAdjustmentWith_G-N

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BundleAdjustmentWith_G-N

Bundle Adjustment is a least-squares objective function for reprojection errors. Researchers demonstrate that Bundle Adjustment can be implemented by Ceres and g2o and can be used for PnP pose estimation. In this question, I write a simple Gaussian Newton method , and use Bundle Adjustment to optimize the pose.

The whole demo is tested in Ubuntu Platorforms.

Problem Description

We know the information of 2D-3D corresponding points and use G-N to solve the pose.

Mathematical theory

Some related theories:Reprojection error

Data description

p2d.txt:Pixel coordinates in reprojection.
Data storageform:u v

p3d.txt:Map point in reprojection.
Data storage form:x y z

fx=520.9 fy=521.0 cx=325.1 cy=249.7

Additional Prerequisites for this demo

Sophus
We use Sophus for Lie groups commonly used for 2d and 3d geometric problems. Dowload and install instructions can be found at: https://github.com/strasdat/Sophus.

Build and Run

cd XX/XX(include GN-BA.cpp ,p2d.txt ,p3d.txt and CMakeLists.txt)  
mkdir build  
cd build  
cmake ..  
make -j2  
./GN-BA

About

I write a simple Gaussian Newton method , and use Bundle Adjustment to optimize the pose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.9%
  • CMake 6.1%