Adapted DetectionAndMatching to OpenCV3
... I think... and also removed useless "nonfree" header
This commit is contained in:
parent
918f632ccb
commit
99f4a98a2d
|
@ -50,8 +50,8 @@ std::vector<std::pair<cv::Point,cv::Point>> detectAndMatch(cv::Mat const& img_1,
|
|||
|
||||
std::vector<cv::KeyPoint> keypoints_1, keypoints_2;
|
||||
|
||||
cv::BRISK briskd(Threshl,Octaves,PatternScales);//initialize algoritm
|
||||
briskd.create("Feature2D.BRISK");
|
||||
cv::BRISK briskd = *cv::BRISK::create(Threshl,Octaves,PatternScales);//initialize algoritm
|
||||
// briskd.create("Feature2D.BRISK");
|
||||
|
||||
briskd.detect(img_1, keypoints_1,masque_1);
|
||||
briskd.detect( img_2, keypoints_2, masque_2);
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include <opencv2/imgproc/imgproc.hpp>
|
||||
#include <opencv2/core/core.hpp>
|
||||
#include <opencv2/features2d/features2d.hpp>
|
||||
#include <opencv2/nonfree/features2d.hpp>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
#include <opencv2/calib3d/calib3d.hpp>
|
||||
|
||||
|
|
Loading…
Reference in New Issue