diff options
author | Nash <nash@bsd-noobz.com> | 2014-08-30 21:08:11 +0700 |
---|---|---|
committer | Nash <nash@bsd-noobz.com> | 2014-08-30 21:08:11 +0700 |
commit | 6605643a3ffb384acd91fa3693d0965999db8ec5 (patch) | |
tree | e8f71581020b5fba7dba06d4c2a76fd71e86867d /opencv-qt-integration-1/ImageViewer.h | |
parent | b96d608a8bc5ede424029586d200ac317cc4da0d (diff) |
Added OpenCV-Qt code sample
Diffstat (limited to 'opencv-qt-integration-1/ImageViewer.h')
-rw-r--r-- | opencv-qt-integration-1/ImageViewer.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/opencv-qt-integration-1/ImageViewer.h b/opencv-qt-integration-1/ImageViewer.h new file mode 100644 index 0000000..e07c333 --- /dev/null +++ b/opencv-qt-integration-1/ImageViewer.h @@ -0,0 +1,23 @@ +#ifndef IMAGEVIEWER_H +#define IMAGEVIEWER_H + +#include <opencv2/core/core.hpp> +#include <QWidget> + +class QLabel; +class QVBoxLayout; +class QPushButton; + +class ImageViewer : public QWidget +{ +public: + ImageViewer(); + +private: + cv::Mat img; + QLabel *imageLabel; + QVBoxLayout *mainLayout; + QPushButton *quitButton; +}; + +#endif |