forked from AntonioRedondo/ImageFeatureDetector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindowFastRealTime.h
More file actions
48 lines (41 loc) · 933 Bytes
/
Copy pathwindowFastRealTime.h
File metadata and controls
48 lines (41 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* 2010-2015 (C) Antonio Redondo
* http://antonioredondo.com
* https://github.com/AntonioRedondo/ImageFeatureDetector
*
* Code under the terms of the GNU General Public License v3.
*
*/
#ifndef WINDOWFASTREALTIME_H
#define WINDOWFASTREALTIME_H
#include <opencv2/opencv.hpp>
#include <opencv2/features2d.hpp>
#include "ui_windowFastRealTime.h"
#include "windowMain.h"
using namespace std;
using namespace cv;
using namespace xfeatures2d;
class WindowFastRealTime : public QDialog, Ui::windowFastRealTime {
Q_OBJECT
public:
WindowFastRealTime(WindowMain*);
void closeEvent(QCloseEvent*);
private:
QSettings* mSettings;
QLocale* mLocale;
VideoCapture mCamera;
QTimer* mTimer;
QPixmap mPixmap;
QPainter* mPainter;
Mat mImageRT;
vector<KeyPoint> mKeypoints;
bool mDetecting;
float mTime;
private slots:
void detect();
void compute();
void close();
void saveFastParams();
void resetFastParams();
};
#endif