-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocessingmodule.hpp
50 lines (34 loc) · 1 KB
/
processingmodule.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
#ifndef PROCESSINGMODULE_HPP
#define PROCESSINGMODULE_HPP
#include <cv.h>
#include <vector>
#include <QObject>
#include <QDialog>
#include <QPushButton>
#include <QFormLayout>
#include "settings.hpp"
#include "processing.hpp"
#include "dontclosedialog.hpp"
class ProcessingModule: public QObject{
Q_OBJECT
public:
ProcessingModule();
~ProcessingModule();
void init(Settings * sets, QDialog * mainDialog);
IplImage * process(IplImage * toProcess);
IplImage * preMatchingProcessing(IplImage * toProcess);
IplImage * postMatchingProcessing(IplImage * toProcess);
private:
void initProcessingObjects();
void initWindow(QDialog * mainDialog);
void addGuiRowForProcessing(Processing * process, QFormLayout * layout);
std::vector<Processing *> preMatchingProcess;
std::vector<Processing *> postMatchingProcess;
Settings * settings;
DontCloseDialog * dialog;
QPushButton * applyButton;
private slots:
void applyChanges();
void enableButton(int);
};
#endif