Fix cudafeatures2d and cudastereo with new 3.0 APIs for ORB and StereoBM

This commit is contained in:
Michele Adduci
2014-11-05 10:42:02 +01:00
parent dce629d0e2
commit e1bb844475
3 changed files with 5 additions and 5 deletions

View File

@@ -185,11 +185,11 @@ CUDA_TEST_P(ORB, Accuracy)
cv::cuda::GpuMat descriptors;
orb(loadMat(image), loadMat(mask), keypoints, descriptors);
cv::ORB orb_gold(nFeatures, scaleFactor, nLevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize);
cv::Ptr<cv::ORB> orb_gold;
std::vector<cv::KeyPoint> keypoints_gold;
cv::Mat descriptors_gold;
orb_gold(image, mask, keypoints_gold, descriptors_gold);
orb_gold->detectAndCompute(image, mask, keypoints_gold, descriptors_gold);
cv::BFMatcher matcher(cv::NORM_HAMMING);
std::vector<cv::DMatch> matches;