diff --git a/modules/xfeatures2d/perf/perf_surf.cpp b/modules/xfeatures2d/perf/perf_surf.cpp index f0bbc346e..1aab5efa1 100644 --- a/modules/xfeatures2d/perf/perf_surf.cpp +++ b/modules/xfeatures2d/perf/perf_surf.cpp @@ -40,7 +40,7 @@ PERF_TEST_P(surf, extract, testing::Values(SURF_IMAGES)) Ptr detector = SURF::create(); vector points; - vector descriptors; + Mat descriptors; detector->detect(frame, points, mask); TEST_CYCLE() detector->compute(frame, points, descriptors); @@ -58,7 +58,7 @@ PERF_TEST_P(surf, full, testing::Values(SURF_IMAGES)) declare.in(frame).time(90); Ptr detector = SURF::create(); vector points; - vector descriptors; + Mat descriptors; TEST_CYCLE() detector->detectAndCompute(frame, mask, points, descriptors, false);