Skip to content

Commit

Permalink
small improves
Browse files Browse the repository at this point in the history
- raise min. num. of matches to 8
  • Loading branch information
kalwalt committed Mar 3, 2024
1 parent 04a5bb2 commit e3cdf48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern const double TEBLID_NN_MATCH_RATIO = 0.8f;
extern const int DEFAULT_MAX_FEATURES = 8000;
extern const int TEBLID_MAX_FEATURES = 10000;
extern const int N = 10;
extern const int MIN_NUM_MATCHES = 50;
extern const int MIN_NUM_MATCHES = 8;
extern const int maxLevel = 3; ///< Maximum number of levels in optical flow image pyramid.
extern const cv::Size winSize(31, 31);
extern const cv::TermCriteria termcrit(cv::TermCriteria::COUNT | cv::TermCriteria::EPS, 20, 0.03);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class WebARKitTracker::WebARKitTrackerImpl {
_nn_match_ratio = DEFAULT_NN_MATCH_RATIO;
minNumMatches = 15;
}
WEBARKIT_LOGi("Min Num Matches: %d\n", minNumMatches);
_camera->setupCamera(frameWidth, frameHeight);
_camera->printSettings();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace webarkit {
return cv::Mat(rows, cols, CV_8UC1, gray);
}*/

static auto convert2Grayscale(cv::Mat refData, size_t refCols, size_t refRows, ColorSpace colorSpace) {
static auto convert2Grayscale(cv::Mat& refData, size_t refCols, size_t refRows, ColorSpace colorSpace) {
cv::Mat refGray;

switch (colorSpace) {
Expand Down

0 comments on commit e3cdf48

Please sign in to comment.