-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtransformworker.h
41 lines (34 loc) · 1.08 KB
/
transformworker.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
33
34
35
36
37
38
39
40
41
#ifndef TRANSFORMWORKER_H
#define TRANSFORMWORKER_H
#include <QObject>
#include <QRect>
#include <opencv2/core.hpp>
class QMutex;
class QString;
class SignalSuppressor;
class TransformWorker : public QObject
{
Q_OBJECT
public:
explicit TransformWorker(const cv::Mat *masterImage = nullptr, cv::Mat *previewImage = nullptr, QMutex *mutex = nullptr, QObject *parent = nullptr);
~TransformWorker();
signals:
void updateDisplayedImage();
void updateStatus(QString);
public slots:
void receiveRotateSuppressedSignal(SignalSuppressor *dataContainer);
void receiveScaleSuppressedSignal(SignalSuppressor *dataContainer);
void receiveImageAddresses(const cv::Mat *masterImage, cv::Mat *previewImage);
void doCropComputation(QRect);
void setAutoCropForRotate(bool);
void doRotateComputation(int);
void doScaleComputation(QRect);
private:
QMutex *mutex_m;
bool autoCropforRotate_m;
const cv::Mat *masterImage_m;
cv::Mat *previewImage_m;
cv::UMat implicitOclImage_m;
cv::UMat previewImplicitOclImage_m;
};
#endif // TRANSFORMWORKER_H