Skip to content

Commit

Permalink
[moved from opencv] cudalegacy: fix test failure of SolvePnPRansac
Browse files Browse the repository at this point in the history
  * use SOLVE_EPNP for the initial guess

original commit: opencv/opencv@c6de84d
  • Loading branch information
tomoaki0705 committed Jul 19, 2019
1 parent fde4b15 commit 1a162b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cudalegacy/src/calib3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ namespace
image_subset(0, i) = image->at<Point2f>(subset_indices[i]);
}

solvePnP(object_subset, image_subset, *camera_mat, *dist_coef, rot_vec, transl_vec);
solvePnP(object_subset, image_subset, *camera_mat, *dist_coef, rot_vec, transl_vec, false, SOLVEPNP_EPNP);

// Remember translation vector
Mat transl_vec_ = transl_vectors.colRange(iter * 3, (iter + 1) * 3);
Expand Down

0 comments on commit 1a162b1

Please sign in to comment.