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
+6
View File
@@ -13,6 +13,12 @@ class STFSlider : public QWidget
int m_grabbed;
public:
explicit STFSlider(QWidget *parent = nullptr);
float blackPoint() const;
float midPoint() const;
float whitePoint() const;
void setMTFParams(float low, float mid, float high);
signals:
void paramChanged(float blackPoint, float midPoint, float whitePoint);
protected:
void paintEvent(QPaintEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;