Rework stretch to use just MTF

This commit is contained in:
2022-04-06 13:12:47 +02:00
parent 31783dbdeb
commit 2ff1b993a1
8 changed files with 93 additions and 135 deletions
+4 -12
View File
@@ -2,29 +2,21 @@
#define STRETCHPANEL_H
#include <QWidget>
#include <QSlider>
#include <QComboBox>
#include "stfslider.h"
class Image;
class StretchPanel : public QWidget
{
Q_OBJECT
QSlider *m_lowSlider;
QSlider *m_highSlider;
QSlider *m_paramSlider;
QComboBox *m_stretchSelect;
STFSlider *m_stfSlider;
public:
explicit StretchPanel(QWidget *parent = nullptr);
public slots:
void imageLoaded(Image *img);
void resetMTF();
signals:
void lowChanged(int low);
void highChanged(int high);
void stretchChanged(int stretch);
void paramChanged(float param);
private slots:
void calculateParam();
void paramChanged(float low, float mid, float high);
};
#endif // STRETCHPANEL_H