Initial Linux Qt OpenCV project
This commit is contained in:
11
app/include/ImageConverter.h
Normal file
11
app/include/ImageConverter.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <QImage>
|
||||
#include <opencv2/core.hpp>
|
||||
|
||||
class ImageConverter final
|
||||
{
|
||||
public:
|
||||
static QImage matToQImage(const cv::Mat &mat);
|
||||
static cv::Mat qImageToMat(const QImage &image);
|
||||
};
|
||||
Reference in New Issue
Block a user