diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2013-01-20 13:56:19 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2013-01-20 13:56:19 +0000 |
commit | 14fab55184e7f63a9e2923dba10360f0c8157698 (patch) | |
tree | dda992c731e2a2c7c07e0b7cd919cacad32c8650 /FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp | |
parent | 43d26a5795153263edec18d5839b726617842eda (diff) |
Made some changes after testing HT. Mail follows, Stanislaw
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@222 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp')
-rw-r--r-- | FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp b/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp index ad530a0b..e440bd10 100644 --- a/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp +++ b/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp @@ -24,19 +24,19 @@ static void load_settings(ht_config_t* config, Tracker* tracker) config->pyrlk_win_size_w = config->pyrlk_win_size_h = 21; config->max_keypoints = 250; config->keypoint_quality = 12; - config->keypoint_distance = 2.1; + config->keypoint_distance = 2.1f; config->keypoint_3distance = 5; 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 = 2.8; - config->ransac_max_inlier_error = 2.8; - config->ransac_max_mean_error = 2.3; - config->ransac_abs_max_mean_error = 3.5; + config->ransac_max_reprojection_error = 2.8f; + config->ransac_max_inlier_error = 2.8f; + config->ransac_max_mean_error = 2.3f; + config->ransac_abs_max_mean_error = 3.5f; config->debug = 0; - config->ransac_min_features = 0.9; + config->ransac_min_features = 0.9f; if (tracker) { tracker->enableRX = iniFile.value("enable-rx", true).toBool(); @@ -112,12 +112,12 @@ void Tracker::StartTracker(HWND parent) shm->timer = 0; switch (subprocess.state()) { - case QProcess::ProcessState::Running: - case QProcess::ProcessState::Starting: + case QProcess::Running: + case QProcess::Starting: subprocess.kill(); } - subprocess.setWorkingDirectory("tracker-ht"); - subprocess.start("tracker-ht/headtracker-ftnoir.exe"); + subprocess.setWorkingDirectory(QCoreApplication::applicationDirPath() + "/tracker-ht"); + subprocess.start(QCoreApplication::applicationDirPath() + "/tracker-ht/headtracker-ftnoir.exe"); } } @@ -219,7 +219,7 @@ void TrackerDll::getDescription(QString *strToBeFilled) void TrackerDll::getIcon(QIcon *icon) { - *icon = QIcon(); + *icon = QIcon(":/images/HT.ico"); } @@ -309,12 +309,12 @@ void TrackerControls::loadSettings() break; } ui.cameraFPS->setCurrentIndex(fps); - ui.rx->setCheckState(iniFile.value("enable-rx", true).toBool() ? Qt::CheckState::Checked : Qt::CheckState::Unchecked); - ui.ry->setCheckState(iniFile.value("enable-ry", true).toBool() ? Qt::CheckState::Checked : Qt::CheckState::Unchecked); - ui.rz->setCheckState(iniFile.value("enable-rz", true).toBool() ? Qt::CheckState::Checked : Qt::CheckState::Unchecked); - ui.tx->setCheckState(iniFile.value("enable-tx", true).toBool() ? Qt::CheckState::Checked : Qt::CheckState::Unchecked); - ui.ty->setCheckState(iniFile.value("enable-ty", true).toBool() ? Qt::CheckState::Checked : Qt::CheckState::Unchecked); - ui.tz->setCheckState(iniFile.value("enable-tz", true).toBool() ? Qt::CheckState::Checked : Qt::CheckState::Unchecked); + ui.rx->setCheckState(iniFile.value("enable-rx", true).toBool() ? Qt::Checked : Qt::Unchecked); + ui.ry->setCheckState(iniFile.value("enable-ry", true).toBool() ? Qt::Checked : Qt::Unchecked); + ui.rz->setCheckState(iniFile.value("enable-rz", true).toBool() ? Qt::Checked : Qt::Unchecked); + ui.tx->setCheckState(iniFile.value("enable-tx", true).toBool() ? Qt::Checked : Qt::Unchecked); + ui.ty->setCheckState(iniFile.value("enable-ty", true).toBool() ? Qt::Checked : Qt::Unchecked); + ui.tz->setCheckState(iniFile.value("enable-tz", true).toBool() ? Qt::Checked : Qt::Unchecked); iniFile.endGroup(); settingsDirty = false; } |