Git Product home page Git Product logo

bundleadjustmentwith_g-n's Introduction

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

bundleadjustmentwith_g-n's People

Contributors

tianqi-777 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.