8000 GitHub - lopenguin/P3P.jl: Julia implementation of P3P.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lopenguin/P3P.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

P3P.jl

A minimal package for solving P3P problems in Julia. To use in Julia, run:

pkg> add https://github.com/lopenguin/P3P.jl

How to use

The main interface is the function p3p(y, b, camK). The arguments of this function are:

  • y: pixel detection coordinates [u; v; 1] arranged as columns of a 3x3 matrix
  • b: corresponding 3D coordinates [x; y; z] arranged as columns of a 3x3 matrix
  • camK: camera calibration matrix [3 x 3]

This function returns a list of rotations and translations that solve the P3P equations. It may be empty.

Solvers

Currently only the Nanako solver is implemented. It is a direct method and ported from the MATLAB code released by the author.

Contributions welcome! The Nanako solver is enough for my needs, and I hope releasing my implementation is useful for you.

References

  1. Gaku Nakano, "A Simple Direct Solution to the Perspective-Three-Point Problem," BMVC2019.
    https://bmvc2019.org/wp-content/uploads/papers/0533-paper.pdf

About

Julia implementation of P3P.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0