diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-10-15 19:21:44 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-10-15 19:21:44 +0400 |
commit | dc46febec83fce671898251dcd69a283c73c4551 (patch) | |
tree | 15279d93b61c3109e14e7d15f76120b358608ee4 /extern/libmv | |
parent | eb69cb7de343843880809f25457c0cb1698dffde (diff) |
Code cleanup: move function prototype to header file
Diffstat (limited to 'extern/libmv')
-rw-r--r-- | extern/libmv/libmv/multiview/euclidean_resection.cc | 4 | ||||
-rw-r--r-- | extern/libmv/libmv/multiview/euclidean_resection.h | 17 |
2 files changed, 17 insertions, 4 deletions
diff --git a/extern/libmv/libmv/multiview/euclidean_resection.cc b/extern/libmv/libmv/multiview/euclidean_resection.cc index b8c0a56005e..245b027fb7c 100644 --- a/extern/libmv/libmv/multiview/euclidean_resection.cc +++ b/extern/libmv/libmv/multiview/euclidean_resection.cc @@ -34,10 +34,6 @@ namespace libmv { namespace euclidean_resection { typedef unsigned int uint; - -bool EuclideanResectionPPnP(const Mat2X &x_camera, - const Mat3X &X_world, - Mat3 *R, Vec3 *t); bool EuclideanResection(const Mat2X &x_camera, const Mat3X &X_world, diff --git a/extern/libmv/libmv/multiview/euclidean_resection.h b/extern/libmv/libmv/multiview/euclidean_resection.h index 8a34f471df9..28eae92611c 100644 --- a/extern/libmv/libmv/multiview/euclidean_resection.h +++ b/extern/libmv/libmv/multiview/euclidean_resection.h @@ -124,6 +124,23 @@ bool EuclideanResectionEPnP(const Mat2X &x_camera, const Mat3X &X_world, Mat3 *R, Vec3 *t); +/** + * Computes the extrinsic parameters, R and t for a calibrated camera from 4 or + * more 3D points and their images. + * + * \param x_camera Image points in normalized camera coordinates, + * e.g. x_camera = inv(K) * x_image + * \param X_world 3D points in the world coordinate system + * \param R Solution for the camera rotation matrix + * \param t Solution for the camera translation vector + * + * Straight from the paper: + * http://www.diegm.uniud.it/fusiello/papers/3dimpvt12-b.pdf + */ +bool EuclideanResectionPPnP(const Mat2X &x_camera, + const Mat3X &X_world, + Mat3 *R, Vec3 *t); + } // namespace euclidean_resection } // namespace libmv |