-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathronchicomparedialog.h
More file actions
42 lines (36 loc) · 989 Bytes
/
ronchicomparedialog.h
File metadata and controls
42 lines (36 loc) · 989 Bytes
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
#ifndef RONCHICOMPAREDIALOG_H
#define RONCHICOMPAREDIALOG_H
#include <QDialog>
#include <QImage>
#include <QLabel>
#include <QSlider>
#include <opencv2/opencv.hpp>
#include <QTimer>
#include <QSlider>
class RonchiCompareDialog : public QDialog {
Q_OBJECT
public:
explicit RonchiCompareDialog(const QImage& img1, const QString& name1, const QImage &img2,
const QString& name2, QWidget* parent);
virtual ~RonchiCompareDialog();
private slots:
void updateOverlay(int val);
void onSaveClicked();
void startBlink();
void blink();
private:
cv::Mat qImageToMat(const QImage& image);
QImage m_q1;
QImage m_q2;
cv::Mat m_currentMat;
QSlider *m_slider;
QLabel* m_displayLabel;
QLabel* m_baseLabel;
QLabel* m_compLabel;
QLabel* m_info;
bool blinkone = true;
bool blinking = false;
QTimer *blinkTimer;
QPushButton* m_saveBtn;
};
#endif // RONCHICOMPAREDIALOG_H