-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatchingmodule.hpp
57 lines (42 loc) · 1.18 KB
/
matchingmodule.hpp
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
#ifndef MATCHINGMODULE_HPP
#define MATCHINGMODULE_HPP
#include <QDialog>
#include <QButtonGroup>
#include <QObject>
#include <QAbstractButton>
#include <QLayout>
#include <QPushButton>
#include <cv.h>
#include <vector>
#include "stereomatching.hpp"
#include "stereomatchingbm.hpp"
#include "stereomatchingsgbm.hpp"
#include "stereomatchinggc.hpp"
#include "settings.hpp"
#include "property.hpp"
class MatchingModule : public QObject
{
Q_OBJECT
public:
MatchingModule(QObject *parent = 0);
~MatchingModule();
void init(Settings * sets, QDialog * dialog);
IplImage * match(IplImage * frame1, IplImage * frame2);
private:
void initAlgorithms();
void initWindows();
void initChooseWindow();
void addGuiForProperty(QDialog * parent, QLayout * layout, Property * prop, QPushButton * button);
std::vector<StereoMatching *> algorithms;
std::vector<QDialog *> setsDialogs;
std::vector<QPushButton *> applyButtons;
QDialog * chooseDialog;
QButtonGroup * buttonGroup;
Settings * settings;
int chosenAlgorithm;
private slots:
void algorithmChanged(int id);
void applyValues();
void enableButton(int);
};
#endif // MATCHINGMODULE_HPP