#ifndef COLOSSUSBASE_H #define COLOSSUSBASE_H #include "cv.h" #include "QtGui\qimage.h" #include "QGraphicsView" #include "QLabel" #include "lpImgViewer.h" namespace ColossusBase { cv::Mat QImage2cvMat(QImage image); QImage* convMat2QImage(cv::Mat & img); QImage *imgScale(QImage *img, int nWidth = 480, int nHeight = 360); QImage *imgScale(QImage &img, int nWidth = 480, int nHeight = 360); bool showImage(cv::Mat & src, lpImgViewer *pImgViewer); bool showImage(QImage& img, lpImgViewer *pImgViewer); bool showImage(cv::Mat & src, QLabel *pLabel); } #endif // COLOSSUSBASE_H