Newer
Older
CasicBioRecNew / utils / ImageUtil.h
tan yue on 25 May 2022 519 bytes 20220525 信号槽调试
#ifndef IMAGEUTIL_H
#define IMAGEUTIL_H

#include <QImage>
#include <QBuffer>
#include "opencv2/opencv.hpp"

class ImageUtil
{
public:
    ImageUtil();

    static QImage MatImageToQImage(const cv::Mat &src);
//    static QImage UcharToQImage(unsigned char* data, int width, int height, QImage::Format format);

//    static cv::Mat QImageToMat(QImage image);
//    static QString QImageToBase64(QImage image);

//    static cv::Mat MatImageRect(const cv::Mat &src, cv::Rect rect, int delta);
};

#endif // IMAGEUTIL_H