Merge pull request #4207 from alalek:fix_calib3d_test

pull/4215/head
Vadim Pisarevsky 9 years ago
commit e26b941e66
  1. 5
      modules/calib3d/perf/perf_pnp.cpp

@ -90,6 +90,11 @@ PERF_TEST_P(PointsNum_Algo, solvePnPSmallPoints,
warmup(rvec, WARMUP_RNG); warmup(rvec, WARMUP_RNG);
warmup(tvec, WARMUP_RNG); warmup(tvec, WARMUP_RNG);
// normalize Rodrigues vector
Mat rvec_tmp = Mat::eye(3, 3, CV_32F);
Rodrigues(rvec, rvec_tmp);
Rodrigues(rvec_tmp, rvec);
projectPoints(points3d, rvec, tvec, intrinsics, distortion, points2d); projectPoints(points3d, rvec, tvec, intrinsics, distortion, points2d);
//add noise //add noise

Loading…
Cancel
Save