Details | 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 | |||
| 18 | |||
| 19 | #ifndef MAINWINDOW_H |
||
| 20 | #define MAINWINDOW_H |
||
| 21 | |||
| 22 | #include <QtGui/QMainWindow> |
||
| 23 | #include <QFileDialog> |
||
| 24 | #include <opencv2/core/core.hpp> |
||
| 25 | #include <opencv2/highgui/highgui.hpp> |
||
| 26 | |||
| 27 | |||
| 28 | namespace Ui |
||
| 29 | { |
||
| 30 | class MainWindow; |
||
| 31 | } |
||
| 32 | |||
| 33 | class MainWindow : public QMainWindow |
||
| 34 | { |
||
| 35 | Q_OBJECT |
||
| 36 | |||
| 37 | public: |
||
| 38 | MainWindow(QWidget *parent = 0); |
||
| 39 | ~MainWindow(); |
||
| 40 | |||
| 41 | private: |
||
| 42 | Ui::MainWindow *ui; |
||
| 43 | cv::Mat image; // the image variable |
||
| 44 | |||
| 45 | private slots: |
||
| 46 | void on_pushButton_2_clicked(); |
||
| 47 | void on_pushButton_clicked(); |
||
| 48 | }; |
||
| 49 | |||
| 50 | #endif // MAINWINDOW_H |