SOLVEPNP_* flags

This commit is contained in:
edgarriba
2014-08-11 16:28:09 +02:00
parent 90b3086f4a
commit afdb67b462
7 changed files with 31 additions and 31 deletions

View File

@@ -55,7 +55,7 @@ double confidence = 0.95; // ransac successful confidence.
int minInliersKalman = 30; // Kalman threshold updating
// PnP parameters
int pnpMethod = cv::ITERATIVE;
int pnpMethod = cv::SOLVEPNP_ITERATIVE;
/** Functions headers **/

View File

@@ -166,7 +166,7 @@ int main()
std::vector<cv::Point3f> list_points3d = registration.get_points3d();
// Estimate pose given the registered points
bool is_correspondence = pnp_registration.estimatePose(list_points3d, list_points2d, cv::ITERATIVE);
bool is_correspondence = pnp_registration.estimatePose(list_points3d, list_points2d, cv::SOLVEPNP_ITERATIVE);
if ( is_correspondence )
{
std::cout << "Correspondence found" << std::endl;