Skip to content

Commit

Permalink
Fix printShortCudaDeviceInfo() for old versions of OpenCV in Ch4
Browse files Browse the repository at this point in the history
  • Loading branch information
shervinemami committed Jan 28, 2013
1 parent 5d0e884 commit b5a65e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Chapter4_StructureFromMotion/GPUSURFFeatureMatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@

using namespace std;
using namespace cv;
using namespace cv::core;
using namespace cv::gpu;

//c'tor
GPUSURFFeatureMatcher::GPUSURFFeatureMatcher(vector<cv::Mat>& imgs_,
vector<std::vector<cv::KeyPoint> >& imgpts_) :
imgpts(imgpts_),use_ratio_test(true)
{
cv::gpu::printShortCudaDeviceInfo(cv::gpu::getDevice());
printShortCudaDeviceInfo(cv::gpu::getDevice());

extractor = new gpu::SURF_GPU();

Expand Down Expand Up @@ -102,4 +103,4 @@ void GPUSURFFeatureMatcher::MatchFeatures(int idx_i, int idx_j, vector<DMatch>*
CV_PROFILE("match",matcher.match( descriptors_1, descriptors_2, *matches );)
}
}
}
}

0 comments on commit b5a65e2

Please sign in to comment.