summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-22 02:45:26 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-22 02:45:26 +0200
commit6fa9e7bb7810f89b0bcc376c940b0c74ac91fdf3 (patch)
tree7ec3127f15882c550faf1488d56cd11452a207eb /ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
parent8503f538d18f8df0f18ee4973e96f3889a11419a (diff)
aruco: remove dead/broken code
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index a221c2ff..099c1f85 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -127,7 +127,6 @@ void Tracker::load_settings()
Tracker::Tracker()
{
- fresh = false;
stop = false;
videoWidget = NULL;
layout = NULL;
@@ -158,20 +157,11 @@ void Tracker::StartTracker(QFrame* videoframe)
videoWidget->show();
this->layout = layout;
load_settings();
- connect(&timer, SIGNAL(timeout()), this, SLOT(paint_widget()));
- timer.start(50);
start();
for (int i = 0; i < 6; i++)
pose[i] = 0;
}
-void Tracker::paint_widget() {
- if (fresh) {
- fresh = false;
- videoWidget->update();
- }
-}
-
#define HT_PI 3.1415926535
void Tracker::run()
@@ -232,10 +222,9 @@ void Tracker::run()
frame = color;
- if (frame.rows > 0 && !fresh)
+ if (frame.rows > 0)
{
videoWidget->update_image(frame.data, frame.cols, frame.rows);
- fresh = true;
}
if (markers.size() == 1 && markers[0].size() == 4) {