Lines Matching defs:tvec
102 void generatePose(Mat& rvec, Mat& tvec, RNG& rng)
107 tvec.create(3, 1, CV_64FC1);
111 tvec.at<double>(i,0) = rng.uniform(minVal, maxVal/10);
117 Mat rvec, tvec;
140 solvePnPRansac(points, projectedPoints, intrinsics, distCoeffs, rvec, tvec,
145 double rvecDiff = norm(rvec-trueRvec), tvecDiff = norm(tvec-trueTvec);
213 Mat rvec, tvec;
240 solvePnP(opoints, projectedPoints, intrinsics, distCoeffs, rvec, tvec,
243 double rvecDiff = norm(rvec-trueRvec), tvecDiff = norm(tvec-trueTvec);
294 Mat tvec;
299 solvePnPRansac(object, image, camera_mat, dist_coef, rvec, tvec);
363 Mat tvec;
365 tvec = (Mat_<float>(3,1) << 100, 100, 0);
367 solvePnP(p3d, p2d, cameraIntrinsic, noArray(), rvec, tvec, true);
369 ASSERT_TRUE(checkRange(tvec));
372 tvec = (Mat_<double>(3,1) << 100, 100, 0);
373 solvePnP(p3d, p2d, cameraIntrinsic, noArray(), rvec, tvec, true);
375 ASSERT_TRUE(checkRange(tvec));
377 solvePnP(p3d, p2d, cameraIntrinsic, noArray(), rvec, tvec, false);
379 ASSERT_TRUE(checkRange(tvec));