Fix cudafeatures2d and cudastereo with new 3.0 APIs for ORB and StereoBM
This commit is contained in:
parent
dce629d0e2
commit
e1bb844475
@ -128,12 +128,12 @@ PERF_TEST_P(Image_NFeatures, ORB,
|
||||
}
|
||||
else
|
||||
{
|
||||
cv::ORB orb(nFeatures);
|
||||
cv::Ptr<cv::ORB> orb;
|
||||
|
||||
std::vector<cv::KeyPoint> cpu_keypoints;
|
||||
cv::Mat cpu_descriptors;
|
||||
|
||||
TEST_CYCLE() orb(img, cv::noArray(), cpu_keypoints, cpu_descriptors);
|
||||
TEST_CYCLE() orb->detectAndCompute(img, cv::noArray(), cpu_keypoints, cpu_descriptors);
|
||||
|
||||
SANITY_CHECK_KEYPOINTS(cpu_keypoints);
|
||||
SANITY_CHECK(cpu_descriptors);
|
||||
|
@ -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;
|
||||
|
@ -79,7 +79,7 @@ PERF_TEST_P(ImagePair, StereoBM,
|
||||
}
|
||||
else
|
||||
{
|
||||
cv::Ptr<cv::StereoBM> bm = cv::createStereoBM(ndisp);
|
||||
cv::Ptr<cv::StereoBM> bm = cv::cuda::createStereoBM(ndisp);
|
||||
|
||||
cv::Mat dst;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user