summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_ht
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-27 19:26:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-27 19:26:30 +0200
commitbf5039ea526b595a687483a70b1326dff8cb7d8b (patch)
tree47802b306e90051ef9539c651faddcf664c86388 /ftnoir_tracker_ht
parent5fdf8b92e78b2a5690ba0e9642c0d68d8b2e4495 (diff)
Reduce CPU usage massively.
Diffstat (limited to 'ftnoir_tracker_ht')
-rw-r--r--ftnoir_tracker_ht/ftnoir_tracker_ht.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
index 10bd4548..3a59c2f8 100644
--- a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
+++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
@@ -109,22 +109,22 @@ static void load_settings(ht_config_t* config, Tracker* tracker)
config->field_of_view = iniFile.value("fov", 52).toFloat();
config->pyrlk_pyramids = 3;
config->pyrlk_win_size_w = config->pyrlk_win_size_h = 21;
- config->max_keypoints = 200;
- config->keypoint_quality = 5;
- config->keypoint_distance = 1;
- config->keypoint_3distance = 4;
- config->keypoint_9distance = 8;
+ config->max_keypoints = 100;
+ config->keypoint_quality = 3;
+ config->keypoint_distance = 3;
+ config->keypoint_3distance = 6;
+ config->keypoint_9distance = 12;
//config->force_width = 640;
//config->force_height = 480;
config->force_fps = iniFile.value("fps", 0).toInt();
config->camera_index = iniFile.value("camera-index", -1).toInt();
config->ransac_num_iters = 100;
- config->ransac_max_reprojection_error = 3.85;
- config->ransac_max_inlier_error = 4;
+ config->ransac_max_reprojection_error = 3.9;
+ config->ransac_max_inlier_error = 3.7;
config->ransac_abs_max_mean_error = 8;
config->ransac_max_mean_error = 3.8;
config->debug = 1;
- config->ransac_min_features = 0.83;
+ config->ransac_min_features = 0.81;
int res = iniFile.value("resolution", 0).toInt();
if (res < 0 || res >= (int)(sizeof(*resolution_choices) / sizeof(resolution_tuple)))
res = 0;
@@ -132,7 +132,7 @@ static void load_settings(ht_config_t* config, Tracker* tracker)
config->force_width = r.width;
config->force_height = r.height;
config->user_landmarks = false; //iniFile.value("use-bashed-coords").toBool();
- config->flandmark_delay = 350;
+ config->flandmark_delay = 250;
#if 0
if (config->user_landmarks)
{