Merge pull request #3467 from Dikay900:fix_gpu_surf_perf_test_cpu_part

pull/3465/merge
Vadim Pisarevsky 10 years ago
commit 2f4c11b5e5
  1. 6
      samples/gpu/performance/tests.cpp

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

Loading…
Cancel
Save