#include "openimg_qt_cv.h" #include <QtGui/QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); OpenImg_QT_CV w; w.show(); return a.exec(); }
#ifndef OPENIMG_QT_CV_H #define OPENIMG_QT_CV_H #include <QtGui/QMainWindow> #include "ui_openimg_qt_cv.h" #include <QFileDialog> #include <QLabel> #include <QImage> #include <opencv2/opencv.hpp> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <QMessageBox> using namespace std; using namespace cv; class OpenImg_QT_CV : public QMainWindow { Q_OBJECT public: OpenImg_QT_CV(QWidget *parent = 0, Qt::WFlags flags = 0); ~OpenImg_QT_CV(); private: Ui::OpenImg_QT_CVClass ui; public slots: void on_OpenImage_clicked(); public: IplImage*
QT opencv 读取显示图像
最新推荐文章于 2024-05-10 22:33:13 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)