Skip to content

Commit

Permalink
Compatibility with OpenCV 4.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tek Raj Chhetri committed Oct 29, 2019
1 parent e0c6e52 commit 3e3b9b9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/estimator_process.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// 3rdparty
#include "opencv2/highgui/highgui.hpp"
// xivo
#include "estimator.h"
#include "estimator_process.h"
#include "tracker.h"
#include "visualize.h"
Expand Down
2 changes: 2 additions & 0 deletions src/tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "glog/logging.h"
#include "opencv2/video/video.hpp"
#include "opencv2/xfeatures2d.hpp"
//#include "opencv2/features2d.hpp"

#include "feature.h"
#include "tracker.h"
Expand Down Expand Up @@ -59,6 +60,7 @@ Tracker::Tracker(const Json::Value &cfg) : cfg_{cfg} {
detector_cfg.get("edgeThreshold", 31).asInt(),
detector_cfg.get("firstLevel", 0).asInt(),
detector_cfg.get("WTA_K", 2).asInt(),
cv::ORB::HARRIS_SCORE,
detector_cfg.get("patchSize", 31).asInt(),
detector_cfg.get("fastThreshold", 20).asInt());
} else if (detector_type == "AGAST") {
Expand Down
1 change: 1 addition & 0 deletions src/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Author: Xiaohan Fei ([email protected])
#include "glog/logging.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/types_c.h"
#include "json/json.h"

#include "core.h"
Expand Down
2 changes: 2 additions & 0 deletions src/visualize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// info on input images.
// Author: Xiaohan Fei ([email protected])
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/types_c.h"
#include "opencv2/imgproc/imgproc_c.h"

#include "feature.h"
#include "visualize.h"
Expand Down

0 comments on commit 3e3b9b9

Please sign in to comment.