8000 Removed call to printShortCudaDeviceInfo() since not available in Ope… · dupuleng/code@8736df1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8736df1

Browse files
committed
Removed call to printShortCudaDeviceInfo() since not available in OpenCV v2.3
1 parent a7a56c7 commit 8736df1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Chapter4_StructureFromMotion/GPUSURFFeatureMatcher.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020

2121
using namespace std;
2222
using namespace cv;
23-
using namespace cv::core;
2423
using namespace cv::gpu;
2524

2625
//c'tor
2726
GPUSURFFeatureMatcher::GPUSURFFeatureMatcher(vector<cv::Mat>& imgs_,
2827
vector<std::vector<cv::KeyPoint> >& imgpts_) :
2928
imgpts(imgpts_),use_ratio_test(true)
3029
{
31-
printShortCudaDeviceInfo(cv::gpu::getDevice());
30+
// The helper function printShortCudaDeviceInfo() moved between OpenCV v2.3 and v2.4, so might not compile.
31+
//printShortCudaDeviceInfo(cv::gpu::getDevice());
3232

3333
extractor = new gpu::SURF_GPU();
3434

@@ -103,4 +103,4 @@ void GPUSURFFeatureMatcher::MatchFeatures(int idx_i, int idx_j, vector<DMatch>*
103103
CV_PROFILE("match",matcher.match( descriptors_1, descriptors_2, *matches );)
104104
}
105105
}
106-
}
106+
}

0 commit comments

Comments
 (0)
0