00001 00004 /***************************************************************************** 00005 ** Ifdefs 00006 *****************************************************************************/ 00007 00008 #ifndef qglv_OPENCV_HPP_ 00009 #define qglv_OPENCV_HPP_ 00010 00011 /***************************************************************************** 00012 ** Includes 00013 *****************************************************************************/ 00014 00015 #include <QImage> 00016 #include <QPixmap> 00017 00018 #include <opencv2/imgproc/imgproc.hpp> 00019 #include <opencv2/imgproc/types_c.h> 00020 00021 #include "widgets/cv_image_view.hpp" 00022 00023 /***************************************************************************** 00024 ** Namespaces 00025 *****************************************************************************/ 00026 00027 namespace qglv { 00028 namespace opencv { 00029 00030 /***************************************************************************** 00031 ** Converters 00032 *****************************************************************************/ 00033 00034 std::pair<cv::Mat, QImage> matToQImage(const cv::Mat &inMat); 00035 std::pair<cv::Mat, QPixmap> matToQPixmap(const cv::Mat &inMat); 00036 00037 } // namespace cv 00038 } // namespace qglv 00039 00040 #endif /* qglv_OPENCV_HPP_ */