-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
71 lines (57 loc) · 1.21 KB
/
main.cpp
File metadata and controls
71 lines (57 loc) · 1.21 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include "mainwindow.h"
#include "stlloader.h"
#include "pgapi.h"
#include <QApplication>
#include <iostream>
#include <string>
#include "opencv\cv.h"
#include "ICP.h"
class QApplicationFilter : public QObject
{
public:
QApplicationFilter() : QObject() {};
~QApplicationFilter() {};
bool eventFilter(QObject* obj, QEvent* event)
{
qDebug() << "QApplicationFilter: "
<< obj->objectName()
<< " - event type: "
<< event->type();
return QObject::eventFilter(obj, event);
};
};
int main(int argc, char *argv[])
{
/* ICP TEST
STLloader model1("porsche.stl");
STLloader lower("lower.stl");
model1.load();
lower.load();
ICP icp1;
icp1.load_points(lower.get_vertexs(), lower.get_vertexs());
icp1.readConfig("config.txt");
icp1.run();
*/
/*QT part
*/
QApplication a(argc, argv);
//a.installEventFilter(new QApplicationFilter());
MainWindow w;
/*
unsigned int s1 = 16154282u;
unsigned int s2 = 16154288u;
cv::Mat img1, img2;
PGApi PGmgr(s1, s2);
PGmgr.PrintBuildInfo();
while(true){
//PGmgr.RunMultipleCamera(img1, img2);
PGmgr.GetStereoImage(img1, img2);
cv::imshow("img1", img1);
cv::waitKey(1);
cv::imshow("img2", img2);
cv::waitKey(1);}
return 0;
*/
w.show();
return a.exec();
}