SOLVEPNP_* flags
This commit is contained in:
@@ -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 **/
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user