Go to the documentation of this file.00001
00004
00005
00006
00007
00008 #ifndef qglv_WIDGETS_CV_IMAGE_VIEW_HPP_
00009 #define qglv_WIDGETS_CV_IMAGE_VIEW_HPP_
00010
00011
00012
00013
00014
00015 #include <opencv2/core/core.hpp>
00016
00017 #include <QGraphicsScene>
00018 #include <QGraphicsView>
00019
00020
00021
00022
00023
00024 namespace qglv {
00025
00026
00027
00028
00029
00030 class CvImageView : public QGraphicsView
00031 {
00032 Q_OBJECT
00033
00034 public:
00035 CvImageView(QWidget *parent = 0);
00036
00037 public slots:
00038 void showImage(cv::Mat image);
00039 void show404Image();
00040
00041 protected:
00042 void showEvent(QShowEvent *);
00043 void resizeEvent(QResizeEvent* event);
00044
00045 private:
00046 QGraphicsScene* scene;
00047 cv::Mat image_internal_storage;
00048 };
00049
00050 }
00051
00052 #endif