blob: bdedb9bf5debe2df29dd1d7d633531d82b32613b (
plain)
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
|
#ifndef IMAGEAPP_H
#define IMAGEAPP_H
#include <opencv2/core/core.hpp>
#include <QWidget>
class QLabel;
class QVBoxLayout;
class QHBoxLayout;
class QPushButton;
class ImageApp : public QWidget
{
Q_OBJECT
public:
ImageApp();
private slots:
void showOriginalImage();
void doCanny();
void doGaussianBlur();
private:
void setupUi();
void showImage(cv::Mat);
cv::Mat originalImage;
cv::Mat processedImage;
QLabel *imageLabel;
QPushButton *originalButton;
QPushButton *blurButton;
QPushButton *cannyButton;
QPushButton *quitButton;
QVBoxLayout *buttonsLayout;
QHBoxLayout *mainLayout;
};
#endif
|