From b5a65e281b5e6774c0e7ddd5de63ba394a0fb743 Mon Sep 17 00:00:00 2001 From: Shervin Emami Date: Mon, 28 Jan 2013 08:33:14 -0800 Subject: [PATCH] Fix printShortCudaDeviceInfo() for old versions of OpenCV in Ch4 --- Chapter4_StructureFromMotion/GPUSURFFeatureMatcher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Chapter4_StructureFromMotion/GPUSURFFeatureMatcher.cpp b/Chapter4_StructureFromMotion/GPUSURFFeatureMatcher.cpp index d380dfb..37e2842 100755 --- a/Chapter4_StructureFromMotion/GPUSURFFeatureMatcher.cpp +++ b/Chapter4_StructureFromMotion/GPUSURFFeatureMatcher.cpp @@ -20,6 +20,7 @@ using namespace std; using namespace cv; +using namespace cv::core; using namespace cv::gpu; //c'tor @@ -27,7 +28,7 @@ GPUSURFFeatureMatcher::GPUSURFFeatureMatcher(vector& imgs_, vector >& imgpts_) : imgpts(imgpts_),use_ratio_test(true) { - cv::gpu::printShortCudaDeviceInfo(cv::gpu::getDevice()); + printShortCudaDeviceInfo(cv::gpu::getDevice()); extractor = new gpu::SURF_GPU(); @@ -102,4 +103,4 @@ void GPUSURFFeatureMatcher::MatchFeatures(int idx_i, int idx_j, vector* CV_PROFILE("match",matcher.match( descriptors_1, descriptors_2, *matches );) } } -} \ No newline at end of file +}