~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to extern/libmv/libmv/multiview/euclidean_resection.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
  
30
30
enum ResectionMethod {
31
31
  RESECTION_ANSAR_DANIILIDIS,
 
32
 
 
33
  // The "EPnP" algorithm by Lepetit et al.
 
34
  // http://cvlab.epfl.ch/~lepetit/papers/lepetit_ijcv08.pdf
32
35
  RESECTION_EPNP,
33
36
};
34
37
 
42
45
 * \param R         Solution for the camera rotation matrix
43
46
 * \param t         Solution for the camera translation vector
44
47
 * \param method    The resection method to use.
 
48
 * \param success_threshold  Threshold of an error which is still considered a success
 
49
 *                           (currently used by EPnP algorithm only)
45
50
 */
46
51
bool EuclideanResection(const Mat2X &x_camera, 
47
52
                        const Mat3X &X_world,
48
53
                        Mat3 *R, Vec3 *t,
49
 
                        ResectionMethod method = RESECTION_EPNP);
 
54
                        ResectionMethod method = RESECTION_EPNP,
 
55
                        double success_threshold = 1e-3);
50
56
 
51
57
/**
52
58
 * Computes the extrinsic parameters, R and t for a calibrated camera
107
113
 * \param X_world 3D points in the world coordinate system
108
114
 * \param R       Solution for the camera rotation matrix
109
115
 * \param t       Solution for the camera translation vector
 
116
 * \param success_threshold  Threshold of an error which is still considered a success
110
117
 *
111
118
 * This is the algorithm described in:
112
119
 * "{EP$n$P: An Accurate $O(n)$ Solution to the P$n$P Problem", by V. Lepetit
115
122
 */
116
123
bool EuclideanResectionEPnP(const Mat2X &x_camera,
117
124
                            const Mat3X &X_world, 
118
 
                            Mat3 *R, Vec3 *t);
 
125
                            Mat3 *R, Vec3 *t,
 
126
                            double success_threshold = 1e-3);
119
127
 
120
128
} // namespace euclidean_resection
121
129
} // namespace libmv