Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef CQTIMAGECONVERTOR_H_
00009 #define CQTIMAGECONVERTOR_H_
00010
00011
00012
00013 #include <QLabel>
00014 #include <QImage>
00015 #include "cv_bridge/CvBridge.h"
00016
00017 class CQTImageConvertor
00018 {
00019 public:
00020 CQTImageConvertor();
00021 virtual ~CQTImageConvertor();
00022
00023 public:
00024 static void showQTImage(QImage* image, QLabel* label);
00025
00026 static void showQTImage(const IplImage* image, QLabel* label);
00027
00028 static void showQTImage(cv::Mat image, QLabel* label);
00029
00030 static void IplImage2QImage(const IplImage *iplImg, QImage* qimg);
00031
00032 static void IplImage2QImage(cv::Mat iplImg, QImage* qimg);
00033
00034 static void showQTImage(const IplImage* image, QPixmap &pixmap);
00035 };
00036
00037 #endif