diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 16:54:54 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 16:54:54 +0200 |
commit | 9cc964b09e2b6076ad759485022dfdc48a22d9e1 (patch) | |
tree | 7f631eb6ec56ca0cfb560a8de9a09439f89f05c1 /ftnoir_tracker_pt/video_widget.h | |
parent | c6f2c4c1f6fce0d91ec975ea19b25b52d9bd13d4 (diff) |
Avoid crashes in video frame
Diffstat (limited to 'ftnoir_tracker_pt/video_widget.h')
-rw-r--r-- | ftnoir_tracker_pt/video_widget.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ftnoir_tracker_pt/video_widget.h b/ftnoir_tracker_pt/video_widget.h index eb63a15e..57be8bff 100644 --- a/ftnoir_tracker_pt/video_widget.h +++ b/ftnoir_tracker_pt/video_widget.h @@ -26,7 +26,7 @@ class VideoWidget : public QWidget public:
VideoWidget(QWidget *parent) : QWidget(parent), mtx() {
}
- void update_image(cv::Mat frame, std::auto_ptr< std::vector<cv::Vec2f> > points);
+ void update_image(cv::Mat frame, std::auto_ptr< std::vector<cv::Vec2f> >);
protected slots:
void paintEvent( QPaintEvent* e ) {
QMutexLocker((QMutex*)&mtx);
@@ -35,9 +35,7 @@ protected slots: }
private:
- cv::Mat frame;
QMutex mtx;
- std::auto_ptr< std::vector<cv::Vec2f> > points;
QPixmap pixmap;
};
|