-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
107 lines (65 loc) · 1.91 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
/*
*
* Author: Zhongrui Li
* Supervisor: Wonsook Lee
* EECS, Faculty of Engineering, University of Ottawa, Canada
*
* Date: March 20th, 2015
*
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "cv.h"
#include "highgui.h"
#include <QMainWindow>
#include <QLabel>
#include <QPoint>
#include <QMouseEvent>
#include <croprect.h>
#include <imageviewer.h>
#include <cvimage.h>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
QImage q_displayed_img;// Original Image
CVImage cv_img_controller;// class used to process cv::mat(opencv image)
QImage q_img;// QImage used to process Qt::QImage (Qt image)
cv::Mat cv_HSV_img;
cv::Mat cv_gabor_img;
cv::Mat cv_enhanced_gabor_img;
cv::Mat cv_eroded_img;
cv::Mat cv_blend_curves_img;
cv::Mat cv_connect_curves_img;
cv::Mat cv_filter_curves_img;
bool is_start_cropping;//flag for start cropping image
bool is_HSV;//flag for finish RGB to HSV convertion
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void paintEvent(QPaintEvent *);
private slots:
void on_actionOpen_triggered();
void on_actionExit_triggered();
void on_actionAbout_triggered();
void keyPressEvent(QKeyEvent *event);
void on_actionSave_triggered();
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_CropButton_clicked();
void on_enhancedGaborFilterButton_clicked();
void on_openImageButton_clicked();
void on_pushButton_3_clicked();
void on_imageErosionButton_clicked();
void on_strandsAnalysisButton_clicked();
void on_pushButton_4_clicked();
void on_pushButton_5_clicked();
void on_Export_CtrlPts_Button_clicked();
private:
Ui::MainWindow *ui;
ImageViewer img_view_controller;
};
#endif // MAINWINDOW_H