-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.h
48 lines (41 loc) · 1.08 KB
/
MainWindow.h
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui>
#include "PointCloudView.h"
#include <opencv2/opencv.hpp>
//#include "NiUserTracker.h"
#include <QTimer>
using namespace cv;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
enum DispMode {
RGBIMAGE,
DEPTHIMAGE
};
private slots:
void updateImage();
void setRGBMode() { mode = RGBIMAGE; depthModeAction->setChecked(false); rgbModeAction->setChecked(true); }
void setDepthMode() { mode = DEPTHIMAGE; rgbModeAction->setChecked(false); depthModeAction->setChecked(true); }
private:
NiUserTracker tracker;
DispMode mode;
QTextEdit debugEdit;
VideoCapture capture;
Mat textureImg, pointCloud, depth;
QMap<unsigned int, Skelton > skeltons;
Mat s, v, hsv;
std::vector<Mat> mvec;
PointCloudViewer *viewer;
QTimer timer;
QToolBar *mainbar;
QAction *rgbModeAction, *depthModeAction;
QAction *userAction;
bool isCalibPose();
void setupUI();
void setupActions();
};
#endif // MAINWINDOW_H