-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
125 lines (72 loc) · 2.62 KB
/
mainwindow.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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include <vector>
#include <iomanip>
#include "pch.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_buttonLoadImage_clicked();
void on_buttonAddSaltAndPepper_clicked();
void on_buttonResetOutput_clicked();
void on_buttonClearAndCloseAll_clicked();
void on_buttonLoadLogo_clicked();
void on_buttonAddLogo_clicked();
void on_buttonConvertColorSpaceConvertTo_clicked();
void on_pushButtonCalculateHistogram_clicked();
void on_pushButtonEqualizeHistogram_clicked();
void on_buttonMorphologicalOperationsPerform_clicked();
void on_buttonBlurringPerform_clicked();
void on_buttonRevert_clicked();
void on_buttonView_clicked();
void on_buttonSobelLaplacianPerform_clicked();
void on_comboBoxSobelLaplacianOperation_currentTextChanged(const QString &arg1);
void on_buttonSharpeningPerform_clicked();
void on_buttonCannyEdgeDetectPerform_clicked();
void on_comboBoxHoughTransformFind_currentTextChanged(const QString &arg1);
void on_buttonHoughTransformFind_clicked();
void on_buttonContourFind_clicked();
void on_buttonHarrisPerform_clicked();
void on_buttonFASTPerform_clicked();
void on_buttonSURFPerform_clicked();
void on_buttonSIFTPerform_clicked();
void on_buttonSaveCurrentImage_clicked();
void on_buttonEstimationCalibrate_clicked();
void on_buttonEstimationFindMatches_clicked();
void on_buttonEstimationLoadMatchingImage_clicked();
void on_buttonEpipolarLoadMatchingImage_clicked();
void on_buttonEpipolarFindEpipolarLines_clicked();
void on_buttonHomographyLoadMatchingImage_clicked();
void on_buttonHomographyCalculateHomography_clicked();
void on_buttonCameraToolbox_clicked();
private:
Ui::MainWindow *ui;
cv::Mat imageInput;
cv::Mat imageOutput;
cv::Mat imageMatching;
cv::Mat imageLogo;
std::vector<cv::Mat> imageHistory;
// Reference: https://github.com/jayrambhia/qt-opencv-app/blob/master/MatToQImage.cpp
QImage matToQImage(const cv::Mat&);
void addSaltNoise(cv::Mat&, int);
void addPepperNoise(cv::Mat&, int);
void displayInputImage();
void displayOutputImage();
void displayLogoImage();
QString pickImageDialog();
void setEnabledToolboxes(bool);
void setCurrentColorSpace(QString);
void addHistory(QString detail);
void revertHistory(int);
void viewHistory(int);
};
#endif // MAINWINDOW_H