Skip to content

Commit b5a65e2

Browse files
committed
Fix printShortCudaDeviceInfo() for old versions of OpenCV in Ch4
1 parent 5d0e884 commit b5a65e2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Chapter4_StructureFromMotion/GPUSURFFeatureMatcher.cpp

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

2121
using namespace std;
2222
using namespace cv;
23+
using namespace cv::core;
2324
using namespace cv::gpu;
2425

2526
//c'tor
2627
GPUSURFFeatureMatcher::GPUSURFFeatureMatcher(vector<cv::Mat>& imgs_,
2728
vector<std::vector<cv::KeyPoint> >& imgpts_) :
2829
imgpts(imgpts_),use_ratio_test(true)
2930
{
30-
cv::gpu::printShortCudaDeviceInfo(cv::gpu::getDevice());
31+
printShortCudaDeviceInfo(cv::gpu::getDevice());
3132

3233
extractor = new gpu::SURF_GPU();
3334

@@ -102,4 +103,4 @@ void GPUSURFFeatureMatcher::MatchFeatures(int idx_i, int idx_j, vector<DMatch>*
102103
CV_PROFILE("match",matcher.match( descriptors_1, descriptors_2, *matches );)
103104
}
104105
}
105-
}
106+
}

0 commit comments

Comments
 (0)