File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,13 @@ void CMT::initialize(const Mat im_gray, const Rect rect)
19
19
Point2f center = Point2f (rect.x + rect.width /2.0 , rect.y + rect.height /2.0 );
20
20
21
21
// Initialize detector and descriptor
22
+ #if CV_MAJOR_VERSION > 2
23
+ detector = cv::FastFeatureDetector::create ();
24
+ descriptor = cv::BRISK::create ();
25
+ #else
22
26
detector = FeatureDetector::create (str_detector);
23
27
descriptor = DescriptorExtractor::create (str_descriptor);
28
+ #endif
24
29
25
30
// Get initial keypoints in whole image and compute their descriptors
26
31
vector<KeyPoint> keypoints;
Original file line number Diff line number Diff line change 1
1
#include " gui.h"
2
2
3
3
#include < opencv2/highgui/highgui.hpp>
4
+ #if CV_MAJOR_VERSION > 2
5
+ # include < opencv2/imgproc.hpp>
6
+ #endif
4
7
5
8
using cv::setMouseCallback;
6
9
using cv::Point ;
You can’t perform that action at this time.
0 commit comments