Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | PointedEar | 1 | /*------------------------------------------------------------------------------------------*\ |
2 | This file contains material supporting chapter 1 of the cookbook: |
||
3 | Computer Vision Programming using the OpenCV Library. |
||
4 | by Robert Laganiere, Packt Publishing, 2011. |
||
5 | |||
6 | This program is free software; permission is hereby granted to use, copy, modify, |
||
7 | and distribute this source code, or portions thereof, for any purpose, without fee, |
||
8 | subject to the restriction that the copyright notice may not be removed |
||
9 | or altered from any source or altered source distribution. |
||
10 | The software is released on an as-is basis and without any warranties of any kind. |
||
11 | In particular, the software is not guaranteed to be fault-tolerant or free from failure. |
||
12 | The author disclaims all warranties with regard to this software, any use, |
||
13 | and any consequent failure, is purely the responsibility of the user. |
||
14 | |||
15 | Copyright (C) 2010-2011 Robert Laganiere, www.laganiere.name |
||
16 | \*------------------------------------------------------------------------------------------*/ |
||
17 | #ifndef MAINWINDOW_H |
||
18 | #define MAINWINDOW_H |
||
19 | |||
20 | #include <QtGui/QMainWindow> |
||
21 | #include <QFileDialog> |
||
22 | #include <opencv2/core/core.hpp> |
||
23 | #include <opencv2/highgui/highgui.hpp> |
||
5 | PointedEar | 24 | #include <opencv2/imgproc/imgproc.hpp> |
3 | PointedEar | 25 | |
26 | namespace Ui |
||
27 | { |
||
28 | class MainWindow; |
||
29 | } |
||
30 | |||
31 | class MainWindow : public QMainWindow |
||
32 | { |
||
33 | Q_OBJECT |
||
34 | |||
35 | public: |
||
36 | MainWindow(QWidget *parent = 0); |
||
37 | ~MainWindow(); |
||
38 | |||
39 | private: |
||
40 | Ui::MainWindow *ui; |
||
41 | cv::Mat image; // the image variable |
||
42 | |||
43 | private slots: |
||
44 | void on_pushButton_2_clicked(); |
||
45 | void on_pushButton_clicked(); |
||
46 | }; |
||
47 | |||
48 | #endif // MAINWINDOW_H |