-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialog.h
96 lines (67 loc) · 2.14 KB
/
dialog.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
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QComboBox>
#include <QPixmap>
#include <QLabel>
#include <QGraphicsView>
#include <QGraphicsPixmapItem>
#include <QString>
#include <QFileInfo>
#include <QDir>
#include "logger.h"
#include <QPushButton>
#include <QImage>
#include <QToolButton>
#include <QtDebug>
#include <QToolTip>
#include <QSlider>
#include <QLineEdit>
#include <iostream>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
namespace Ui {
class Dialog;
}
class Dialog : public QDialog
{
Q_OBJECT
public:
int i=0;
void important(double alpha,int beta, std::string abspath);
QSlider *brightness;
QSlider *contrast;
void copy_widget(QListWidget *widget);
QPushButton *button;
QComboBox *box;
void add_item();
explicit Dialog(QWidget *parent = nullptr);
QGraphicsView *big;
QLabel *name;
QListWidget *listwidget;
void changed_color(QLabel *label);
~Dialog();
private slots:
//void on_brightness_valueChanged(int value);
void on_forward_clicked();
//void on_contrast_valueChanged(int value);
void on_backward_clicked();
//void on_he_clicked();
//void on_clahe_clicked();
//void on_testctr_valueChanged(int value);
void show_image(cv::Mat input_image,int i);
void on_contrast_valueChanged(int value);
void on_brightness_valueChanged(int value);
//void on_first_img_clicked();
void on_listWidget_itemClicked(QListWidgetItem *item);
void on_first_img_clicked();
private:
logger l;
QStringList intestine_list={"Thân vị cao","Thân vị giữa","Thân vị thấp","Thân vị rút","Hang vị trước",
"Hang vị sau","Hang vị bờ cong nhỏ","Hang vị bờ cong lớn","Môn vị","Tâm vị","Góc bờ cong nhỏ",
"Bờ cong nhỏ phần đứng","Phình vị","Bệnh 1","Bệnh 2","Bệnh 3"};
QGraphicsScene *scene=new QGraphicsScene;
Ui::Dialog *ui;
};
#endif // DIALOG_H