-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcapturetab.h
More file actions
45 lines (40 loc) · 1.07 KB
/
capturetab.h
File metadata and controls
45 lines (40 loc) · 1.07 KB
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
#ifndef CAPTURETAB_H
#define CAPTURETAB_H
#include <QtWidgets/QWidget>
#include "stdafx.h"
#include "helper.h"
#include "annotatetab.h"
#include "desktopapp.h"
#include "recorder.h"
#include <k4a/k4a.hpp>
#include <opencv2/opencv.hpp>
class CaptureTab: public QWidget
{
Q_OBJECT
public:
CaptureTab(DesktopApp* parent);
QTimer* timer;
QImage getQCapturedColorImage();
QImage getQCapturedDepthToColorImage();
k4a_image_t* getK4aPointCloud();
k4a_image_t* getK4aDepthToColor();
QVector3D query3DPoint(int x, int y);
int getCaptureCount();
void setCaptureCount(int newCaptureCount);
Recorder* getRecorder();
private:
DesktopApp* parent;
k4a_image_t k4aPointCloud;
k4a_image_t k4aDepthToColor;
QImage colorImage;
QImage depthImage;
QImage colorToDepthImage;
QImage depthToColorImage;
int captureCount;
Recorder* recorder;
void setDefaultCaptureMode();
void registerRadioButtonOnClicked(QRadioButton* radioButton, QImage* image);
void drawGyroscopeData();
void drawAccelerometerData();
};
#endif