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.
86 lines
1.1 KiB
86 lines
1.1 KiB
#ifndef MULTIPOINT_H |
|
#define MULTIPOINT_H |
|
|
|
#include <QObject> |
|
#include <QMap> |
|
#include <QThread> |
|
#include <QVector> |
|
|
|
|
|
#include <opencv2/opencv.hpp> |
|
|
|
|
|
class MultiPoint : public QObject |
|
{ |
|
Q_OBJECT |
|
public: |
|
explicit MultiPoint(QObject *parent = nullptr); |
|
|
|
bool enable; |
|
public slots: |
|
|
|
void saveData(cv::Mat ); |
|
void calcData(QVector<double>); |
|
void runData(cv::Mat ); |
|
|
|
void meanmat(cv::Mat); |
|
|
|
|
|
void save(); |
|
|
|
void savedata(QString,double ittime); |
|
|
|
void loaddata(); |
|
void off(); |
|
|
|
void setparas(int _row,int _col); |
|
void setdevice(QString); |
|
void setit(double); |
|
void setrmblk(bool); |
|
|
|
void slotSetThre(double); |
|
|
|
signals: |
|
void signalsendimg(cv::Mat); |
|
|
|
void signalNewFrame(double); |
|
|
|
void signalLog(QString); |
|
|
|
|
|
|
|
private: |
|
|
|
QThread* thread; |
|
bool ready; |
|
|
|
|
|
QMap<double,cv::Mat> datas; |
|
|
|
|
|
|
|
int stagecount; |
|
double* stages; |
|
double* kstages; |
|
double* bstages; |
|
|
|
|
|
cv::Mat msave; |
|
bool b_save; |
|
int n_save; |
|
|
|
int rows; |
|
int cols; |
|
|
|
QString deviceid; |
|
double ittime; |
|
|
|
|
|
cv::Mat msk; |
|
|
|
bool b_rmbld;//bool remove blind point |
|
double b_thre; |
|
|
|
}; |
|
|
|
#endif // MULTIPOINT_H
|
|
|