summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/pt_video_widget.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-06-04 19:51:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-06-05 09:55:58 +0200
commit74b8483457b51727dba38aa05a5be9bc773d8a28 (patch)
tree2f5f454163057dd4f0f11e7346788231c5788c2a /ftnoir_tracker_pt/pt_video_widget.h
parentb1c929e63eaf689895359ce7b5a4b86b46439f11 (diff)
octopus, pt, aruco: optimize image copying
Perform less operations in inner loop where pixels are accessed.
Diffstat (limited to 'ftnoir_tracker_pt/pt_video_widget.h')
-rw-r--r--ftnoir_tracker_pt/pt_video_widget.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ftnoir_tracker_pt/pt_video_widget.h b/ftnoir_tracker_pt/pt_video_widget.h
index f2b41d63..07b1ee2a 100644
--- a/ftnoir_tracker_pt/pt_video_widget.h
+++ b/ftnoir_tracker_pt/pt_video_widget.h
@@ -39,7 +39,6 @@ public:
timer.start(40);
}
void update_image(const cv::Mat &frame);
- void update_frame_and_points() {}
protected slots:
void paintEvent( QPaintEvent* e ) {
QMutexLocker foo(&mtx);
@@ -52,5 +51,5 @@ private:
QImage texture;
QTimer timer;
cv::Mat _frame;
- volatile bool freshp;
+ bool freshp;
};