From 914b78b8bbb600a5b6944813bd76a6345ff6d162 Mon Sep 17 00:00:00 2001 From: Michele Adduci Date: Wed, 5 Nov 2014 12:00:31 +0100 Subject: [PATCH] Updated ORB test with parameters --- modules/cudafeatures2d/perf/perf_features2d.cpp | 2 +- modules/cudastereo/perf/perf_stereo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cudafeatures2d/perf/perf_features2d.cpp b/modules/cudafeatures2d/perf/perf_features2d.cpp index b73aef0..26eb434 100644 --- a/modules/cudafeatures2d/perf/perf_features2d.cpp +++ b/modules/cudafeatures2d/perf/perf_features2d.cpp @@ -128,7 +128,7 @@ PERF_TEST_P(Image_NFeatures, ORB, } else { - cv::Ptr orb; + cv::Ptr orb = cv::ORB::create(nFeatures); std::vector cpu_keypoints; cv::Mat cpu_descriptors; diff --git a/modules/cudastereo/perf/perf_stereo.cpp b/modules/cudastereo/perf/perf_stereo.cpp index 766bb16..36b065e 100644 --- a/modules/cudastereo/perf/perf_stereo.cpp +++ b/modules/cudastereo/perf/perf_stereo.cpp @@ -79,7 +79,7 @@ PERF_TEST_P(ImagePair, StereoBM, } else { - cv::Ptr bm = cv::cuda::createStereoBM(ndisp); + cv::Ptr bm = cv::StereoBM::create(ndisp); cv::Mat dst; -- 2.7.4