-
Notifications
You must be signed in to change notification settings - Fork 0
/
controllerfilter.h
39 lines (37 loc) · 1005 Bytes
/
controllerfilter.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
#ifndef CONTROLLERFILTER_H
#define CONTROLLERFILTER_H
#include "stdafx.h"
#include <QObject>
#include "ui_mainwindow.h"
class ControllerFilter : public QObject
{
Q_OBJECT
public:
explicit ControllerFilter(Ui::MainWindow *ui,
QMainWindow* mainWindow);
cv::Mat filterImage(cv::Mat image);
cv::Mat BuildFilter(cv::Size imageSize);
signals:
void imageSaved(QString fileName);
public slots:
void setCurrentItem();
void start();
void save();
private:
QObject* _parent;
previewGraphicsView* _sourceView;
previewGraphicsView* _resultView;
QPushButton* _start;
QPushButton* _setSelected;
QPushButton* _save;
QDoubleSpinBox* _LensRadius;
QDoubleSpinBox* _OSWidth;
QDoubleSpinBox* _WaveLength;
QDoubleSpinBox* _DPI;
ImageItem* _source;
QMainWindow* _MainWindow;
QTableView* _table1;
QTableView* _table2;
cv::Mat _result;
};
#endif // CONTROLLERFILTER_H