-
Notifications
You must be signed in to change notification settings - Fork 1
/
main_window.h
45 lines (37 loc) · 944 Bytes
/
main_window.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
#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H
#include <QMainWindow>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QLabel>
#include <QImage>
#include <memory>
#include "fabemd_fusion.h"
#include "zoom_graphics_view.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
static MainWindow *GetInstance();
~MainWindow();
void SetFusedImage(QImage *fused_image);
private slots:
void on_actionOpen_Images_triggered();
void on_pushButton_released();
private:
MainWindow(QWidget *parent = nullptr);
static MainWindow *instance;
void resizeEvent(QResizeEvent* event);
Ui::MainWindow *ui;
QVector<QLabel*> in_im_widgets;
QVector<QImage*> inputImages;
std::unique_ptr<FabemdFusion> fabemdDecomposer;
QGraphicsScene *scene;
QGraphicsPixmapItem* output_picture;
int image_count;
float aspect_ratio;
};
#endif // MAIN_WINDOW_H