-
Notifications
You must be signed in to change notification settings - Fork 2
/
main-window.hpp
60 lines (46 loc) · 1.26 KB
/
main-window.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
51
52
53
54
55
56
57
58
59
60
#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <QMainWindow>
#include <QGraphicsPixmapItem>
#include <opencv2/core/core.hpp>
#include <string>
#include <vector>
#include "masks/abstract-manager.hpp"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
Ui::MainWindow *ui;
QGraphicsPixmapItem *pixmap;
QWidget *previous_lock;
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void add_manager (AbstractManager *);
private slots:
void on_loadImagePushButton_clicked();
void on_numberMasksSpinBox_valueChanged(int arg1);
void on_createROIMasksPushButton_clicked();
void on_maskTypeComboBox_currentIndexChanged(int index);
void on_enhanceImageCheckBox_toggled(bool checked);
void on_highlightROIsCheckBox_toggled(bool checked);
private:
/**
* @brief folder Folder where the image and masks are stored.
*
* Folder where the shown image is stored. Image masks and mask properties are
* saved in this folder.
*/
std::string working_folder;
/**
* @brief temporary_folder Folder where temporary masks are saved.
*/
std::string temporary_folder;
cv::Mat image;
std::vector<AbstractManager *> managers;
bool first_image;
void set_image (const std::string &image_filename);
};
#endif // MAINWINDOW_HPP