forked from BruceAtian/zhijian-wang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmythread.h
32 lines (26 loc) · 1.13 KB
/
mythread.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MYTHREAD_H
#define MYTHREAD_H
#include<QThread>
#include<QObject>
#include<QDebug>
#include<QMessageBox>
#include "dft.h"
#include"imagenoise.h"
class MyThread : public QThread
{
Q_OBJECT
public:
explicit MyThread(QThread *parent = nullptr);
void startThread_noise(cv::Mat &image, int type, double means, double sigma, double SNR, int k);
void startThread_filter(cv::Mat &image, int type, int kernelsize, float filter_sigma, int median_kernelsize, int median_maxsize);
void startThread_rotate(cv::Mat &src, cv::Mat &dst, double angle, int numofthread, int blocknumber);
void startThread_scale(cv::Mat &src, cv::Mat &dst, int numofthread, int blocknumber, double fx, double fy);
void startThread_amplitude(int lengthR, int lengthC, myComplex *resultE, float &val_max, float &val_min, float *amplitude, int numofthread, int blocknumber);
void startThread_normalize(float &val_max, float &val_min, int lengthR, int lengthC, float *amplitude, cv::Mat &fftResult, int numofthread, int blocknumber);
void closeThread();
signals:
public slots :
private:
volatile bool isStop;
};
#endif // MYTHREAD_H