Code cleanup: move function prototype to header file

This commit is contained in:
Sergey Sharybin
2013-10-15 15:21:44 +00:00
parent eb69cb7de3
commit dc46febec8
2 changed files with 17 additions and 4 deletions

View File

@@ -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,

View File

@@ -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