-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresultviewer.h
46 lines (32 loc) · 864 Bytes
/
resultviewer.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
42
43
44
45
46
#ifndef RESULTVIEWER_H
#define RESULTVIEWER_H
#include <QMainWindow>
#include <QGraphicsScene>
#include <fftw3.h>
namespace Ui {
class ResultViewer;
}
class ResultViewer : public QMainWindow
{
Q_OBJECT
public:
ResultViewer(const QImage *before, int fParam, int dParam, QWidget *parent = nullptr);
~ResultViewer();
private slots:
void resizeEvent(QResizeEvent* event);
void showEvent(QShowEvent *event);
void updateAfterImage();
void on_actionSave_As_triggered();
private:
Ui::ResultViewer *ui;
const QImage *beforeImage;
QPixmap beforePixmap;
QPixmap afterPixmap;
QGraphicsScene *beforeScene;
QGraphicsScene *afterScene;
int F;
int D;
static double *FFTWCompute(const double *input, int size);
static double *iFFTWCompute(const double *input, int size);
};
#endif // RESULTVIEWER_H