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.
34 lines
502 B
34 lines
502 B
#ifndef SAGAUSS_H |
|
#define SAGAUSS_H |
|
|
|
#include <QObject> |
|
#include <QThread> |
|
#include <opencv2/opencv.hpp> |
|
|
|
|
|
class sagauss : public QObject |
|
{ |
|
Q_OBJECT |
|
public: |
|
explicit sagauss(QObject *parent = nullptr); |
|
|
|
void setpara(int r, double sigma); |
|
void on(); |
|
void off(); |
|
public slots: |
|
void slotprocimg(cv::Mat img); |
|
|
|
|
|
signals: |
|
void signalsendimg(cv::Mat img); |
|
private: |
|
double sigmaN; |
|
int r; |
|
double sigma; |
|
bool ready; |
|
|
|
QThread * thread; |
|
|
|
}; |
|
|
|
#endif // SAGAUSS_H
|
|
|