cudalegacy: fix test failure of SolvePnPRansac

* use SOLVE_EPNP for the initial guess
pull/15093/head
Tomoaki Teshima 5 years ago
parent 39a975cb29
commit c6de84d868
  1. 2
      modules/cudalegacy/src/calib3d.cpp

@ -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);

Loading…
Cancel
Save