Debian Codegraph @

cvd/geometry/threepointpose.h

raw symbols SCIP
1 #ifndef THREEPOINTPOSE_H
2 #define THREEPOINTPOSE_H
3
4 #include <TooN/se3.h>
5 #include <array>
6 #include <vector>
7
8 namespace CVD
9 {
10
11 /// @defgroup geometry Camera pose estimation
12 /// contains functions for estimating camera pose from different correspondences.
13
14 /// The function for pose estimation from three 2D - 3D point correspondences.
15 /// It implements the algorithm given by the Fischer and Bolles RANSAC paper, 1980.
16 /// This function assumes that the three points are in general position (not collinear).
17 /// Input is an array of 3D cartesian positions and an array of 2D vectors that are the perspective projections of the points.
18 /// Ouput is up to four poses satisfying the input with positive depths (points in front of the camera).
19 /// @param[in] x an array containing at least 3 points
20 /// @param[in] z an array containing the perspective projections of the points given by x in the current pose
21 /// @param[out] poses the vector onto which any valid poses are appended
22 /// @return the number of poses appended to the vector
23 /// @ingroup geometry
24 int three_point_pose(const std::array<TooN::Vector<3>, 3>& x, const std::array<TooN::Vector<2>, 3>& z, std::vector<TooN::SE3<>>& poses);
25
26 /// The function for pose estimation from three 2D - 3D point correspondences.
27 /// It implements the algorithm given by the Fischer and Bolles RANSAC paper, 1980.
28 /// This function assumes that the three points are in general position (not collinear).
29 /// Input is an array of 3D cartesian positions and an array of 3D vectors that are rays corresponding to (unprojected) 2D observations of the 3D points.
30 /// Ouput is up to four poses satisfying the input with positive depths (points in front of the camera).
31 /// @param[in] x an array containing at least 3 points
32 /// @param[in] z an array containing the rays corresponding to image points cast by x in the current pose
33 /// @param[out] poses the vector onto which any valid poses are appended
34 /// @return the number of poses appended to the vector
35 /// @ingroup geometry
36 int three_point_pose(const std::array<TooN::Vector<3>, 3>& x, const std::array<TooN::Vector<2>, 3>& rays, std::vector<TooN::SE3<>>& poses);
37
38 }
39
40 #endif