You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
487 B

#ifndef AVGFILTER_H
#define AVGFILTER_H
#include <QObject>
#include <opencv2/opencv.hpp>
#include <QThread>
class avgfilter : public QObject
{
Q_OBJECT
public:
explicit avgfilter(QObject *parent = nullptr);
void setpara(int para);
void on();
void off();
public slots:
void slotprocimg(cv::Mat img);
signals:
void signalsendimg(cv::Mat img);
private:
bool ready;
cv::Mat lastmat;
int para;
QThread* thread;
};
#endif // AVGFILTER_H