/external/opencv3/modules/cudalegacy/perf/ |
D | perf_calib3d.cpp | 68 const cv::Mat camera_mat = cv::Mat::ones(3, 3, CV_32FC1); variable 75 TEST_CYCLE() cv::cuda::projectPoints(d_src, rvec, tvec, camera_mat, cv::Mat(), dst); 83 TEST_CYCLE() cv::projectPoints(src, rvec, tvec, camera_mat, cv::noArray(), dst); 102 cv::Mat camera_mat(3, 3, CV_32FC1); variable 103 cv::randu(camera_mat, 0.5, 1); 104 camera_mat.at<float>(0, 1) = 0.f; 105 camera_mat.at<float>(1, 0) = 0.f; 106 camera_mat.at<float>(2, 0) = 0.f; 107 camera_mat.at<float>(2, 1) = 0.f; 118 cv::projectPoints(object, rvec_gold, tvec_gold, camera_mat, dist_coef, image_vec); [all …]
|
/external/opencv3/modules/cudalegacy/test/ |
D | test_calib3d.cpp | 119 cv::Mat camera_mat = randomMat(cv::Size(3, 3), CV_32F, 0.5, 1); in CUDA_TEST_P() local 120 camera_mat.at<float>(0, 1) = 0.f; in CUDA_TEST_P() 121 camera_mat.at<float>(1, 0) = 0.f; in CUDA_TEST_P() 122 camera_mat.at<float>(2, 0) = 0.f; in CUDA_TEST_P() 123 camera_mat.at<float>(2, 1) = 0.f; in CUDA_TEST_P() 126 cv::cuda::projectPoints(loadMat(src), rvec, tvec, camera_mat, cv::Mat(), dst); in CUDA_TEST_P() 132 …cv::projectPoints(src, rvec, tvec, camera_mat, cv::Mat(1, 8, CV_32F, cv::Scalar::all(0)), dst_gold… in CUDA_TEST_P() 167 cv::Mat camera_mat = randomMat(cv::Size(3, 3), CV_32F, 0.5, 1); in CUDA_TEST_P() local 168 camera_mat.at<float>(0, 1) = 0.f; in CUDA_TEST_P() 169 camera_mat.at<float>(1, 0) = 0.f; in CUDA_TEST_P() [all …]
|
/external/opencv3/modules/cudalegacy/src/ |
D | calib3d.cpp | 107 …Caller(const GpuMat& src, const Mat& rvec, const Mat& tvec, const Mat& camera_mat, const Mat& dist… in projectPointsCaller() argument 112 CV_Assert(camera_mat.size() == Size(3, 3) && camera_mat.type() == CV_32F); in projectPointsCaller() 120 …project_points::call(src, rot.ptr<float>(), tvec.ptr<float>(), camera_mat.ptr<float>(), dst,stream… in projectPointsCaller() 124 …Points(const GpuMat& src, const Mat& rvec, const Mat& tvec, const Mat& camera_mat, const Mat& dist… in projectPoints() argument 126 …projectPointsCaller(src, rvec, tvec, camera_mat, dist_coef, dst, StreamAccessor::getStream(stream)… in projectPoints() 159 … : object(&object_), image(&image_), dist_coef(&dist_coef_), camera_mat(&camera_mat_), in TransformHypothesesGenerator() 184 solvePnP(object_subset, image_subset, *camera_mat, *dist_coef, rot_vec, transl_vec); in operator ()() 201 const Mat* camera_mat; member in __anon7da338e10311::TransformHypothesesGenerator 211 void cv::cuda::solvePnPRansac(const Mat& object, const Mat& image, const Mat& camera_mat, in solvePnPRansac() argument 220 CV_Assert(camera_mat.size() == Size(3, 3) && camera_mat.type() == CV_32F); in solvePnPRansac() [all …]
|
/external/opencv3/modules/calib3d/perf/ |
D | perf_pnp.cpp | 119 Mat camera_mat(3, 3, CV_32FC1); variable 120 randu(camera_mat, 0.5, 1); 121 camera_mat.at<float>(0, 1) = 0.f; 122 camera_mat.at<float>(1, 0) = 0.f; 123 camera_mat.at<float>(2, 0) = 0.f; 124 camera_mat.at<float>(2, 1) = 0.f; 135 projectPoints(object, rvec_gold, tvec_gold, camera_mat, dist_coef, image_vec); 149 solvePnPRansac(object, image, camera_mat, dist_coef, rvec, tvec); in TEST_CYCLE()
|
/external/opencv3/modules/calib3d/test/ |
D | test_solvepnp_ransac.cpp | 264 Mat camera_mat(3, 3, CV_32FC1); in TEST() local 265 randu(camera_mat, 0.5, 1); in TEST() 266 camera_mat.at<float>(0, 1) = 0.f; in TEST() 267 camera_mat.at<float>(1, 0) = 0.f; in TEST() 268 camera_mat.at<float>(2, 0) = 0.f; in TEST() 269 camera_mat.at<float>(2, 1) = 0.f; in TEST() 278 projectPoints(object, rvec_gold, tvec_gold, camera_mat, dist_coef, image_vec); in TEST() 289 solvePnPRansac(object, image, camera_mat, dist_coef, rvec1, tvec1); in TEST() 299 solvePnPRansac(object, image, camera_mat, dist_coef, rvec, tvec); in TEST() 307 solvePnPRansac(object, image, camera_mat, dist_coef, rvec2, tvec2); in TEST()
|
D | test_undistort_badarg.cpp | 70 cv::Mat camera_mat; member in CV_UndistortPointsBadArgTest 89 cv::undistortPoints(src_points,dst_points,camera_mat,distortion_coeffs,R,P); in run_func() 252 camera_mat = cv::cvarrToMat(&_camera_mat_orig); in run() 307 cv::Mat camera_mat; member in CV_InitUndistortRectifyMapBadArgTest 327 …cv::initUndistortRectifyMap(camera_mat,distortion_coeffs,R,new_camera_mat,img_size,mat_type,mapx,m… in run_func() 371 camera_mat = cv::cvarrToMat(&_camera_mat_orig); in run() 384 camera_mat = cv::cvarrToMat(temp); in run() 386 camera_mat = cv::cvarrToMat(&_camera_mat_orig); in run() 431 cv::Mat camera_mat; member in CV_UndistortBadArgTest 449 cv::undistort(src,dst,camera_mat,distortion_coeffs,new_camera_mat); in run_func() [all …]
|
D | test_undistort.cpp | 61 cv::Mat camera_mat; member in CV_DefaultNewCameraMatrixTest 117 camera_mat = _a0; in prepare_test_case() 125 new_camera_mat = cv::getDefaultNewCameraMatrix(camera_mat,img_size,center_principal_point); in run_func() 188 cv::Mat camera_mat; member in CV_UndistortPointsTest 371 camera_mat = test_mat[INPUT][1]; in prepare_test_case() 463 cv::undistortPoints(src_points,dst_points_mat,camera_mat,input2,input3,input4); in run_func() 468 cv::undistortPoints(src_points,dst_points,camera_mat,input2,input3,input4); in run_func() 594 cv::Mat camera_mat; member in CV_InitUndistortRectifyMapTest 778 camera_mat = test_mat[INPUT][1]; in prepare_test_case() 912 cv::initUndistortRectifyMap(camera_mat,input2,input3,input4,img_size,mat_type,mapx,mapy); in run_func()
|
/external/opencv3/samples/gpu/performance/ |
D | tests.cpp | 847 Mat camera_mat; gen(camera_mat, 3, 3, CV_32F, 0, 1); in TEST() local 848 camera_mat.at<float>(0, 1) = 0.f; in TEST() 849 camera_mat.at<float>(1, 0) = 0.f; in TEST() 850 camera_mat.at<float>(2, 0) = 0.f; in TEST() 851 camera_mat.at<float>(2, 1) = 0.f; in TEST() 859 projectPoints(src, rvec, tvec, camera_mat, Mat::zeros(1, 8, CV_32F), dst); in TEST() 862 projectPoints(src, rvec, tvec, camera_mat, Mat::zeros(1, 8, CV_32F), dst); in TEST() 867 cuda::projectPoints(d_src, rvec, tvec, camera_mat, Mat(), d_dst); in TEST() 870 cuda::projectPoints(d_src, rvec, tvec, camera_mat, Mat(), d_dst); in TEST() 895 Mat camera_mat; gen(camera_mat, 3, 3, CV_32F, 0.5, 1); in TEST() local [all …]
|
/external/opencv3/modules/cudalegacy/include/opencv2/ |
D | cudalegacy.hpp | 262 const Mat& camera_mat, const Mat& dist_coef, GpuMat& dst, 281 CV_EXPORTS void solvePnPRansac(const Mat& object, const Mat& image, const Mat& camera_mat,
|