提交 2f4c11b5 编写于 作者: V Vadim Pisarevsky

Merge pull request #3467 from Dikay900:fix_gpu_surf_perf_test_cpu_part

......@@ -284,14 +284,14 @@ TEST(SURF)
Mat src = imread(abspath("../data/aloeL.jpg"), IMREAD_GRAYSCALE);
if (src.empty()) throw runtime_error("can't open ../data/aloeL.jpg");
xfeatures2d::SURF surf;
Ptr<Feature2D> surf = xfeatures2d::SURF::create();
vector<KeyPoint> keypoints;
Mat descriptors;
surf(src, Mat(), keypoints, descriptors);
surf->detectAndCompute(src, Mat(), keypoints, descriptors);
CPU_ON;
surf(src, Mat(), keypoints, descriptors);
surf->detectAndCompute(src, Mat(), keypoints, descriptors);
CPU_OFF;
cuda::SURF_CUDA d_surf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册