diff --git a/samples/gpu/performance/tests.cpp b/samples/gpu/performance/tests.cpp index d1e4c070e0..9767e7ac6d 100644 --- a/samples/gpu/performance/tests.cpp +++ b/samples/gpu/performance/tests.cpp @@ -339,14 +339,15 @@ TEST(ORB) Mat src = imread(abspath("../data/aloeL.jpg"), IMREAD_GRAYSCALE); if (src.empty()) throw runtime_error("can't open ../data/aloeL.jpg"); - ORB orb(4000); + Ptr orb = ORB::create(4000); + vector keypoints; Mat descriptors; - orb(src, Mat(), keypoints, descriptors); + orb->detectAndCompute(src, Mat(), keypoints, descriptors); CPU_ON; - orb(src, Mat(), keypoints, descriptors); + orb->detectAndCompute(src, Mat(), keypoints, descriptors); CPU_OFF; cuda::ORB_CUDA d_orb;