checks-parser/adjustpicturedialog.h

40 lines
780 B
C
Raw Permalink Normal View History

2024-11-22 23:26:42 +03:00
#ifndef ADJUSTPICTUREDIALOG_H
#define ADJUSTPICTUREDIALOG_H
#include <QDialog>
#include <QGraphicsScene>
namespace Ui {
class AdjustPictureDialog;
}
class AdjustPictureDialog : public QDialog
{
Q_OBJECT
public:
explicit AdjustPictureDialog(QWidget *parent = nullptr, std::string imagePath = "");
~AdjustPictureDialog();
std::string decode();
2024-11-25 04:07:56 +03:00
QPixmap pixmap;
QImage img;
2024-11-22 23:26:42 +03:00
2024-11-25 04:07:56 +03:00
void computeContrastLookupTable();
std::vector<unsigned short> contrastLUT[100];
2024-11-22 23:26:42 +03:00
signals:
void decodedData(std::string data);
private slots:
// void on_buttonBox_accepted();
void accept() override;
2024-11-24 19:07:28 +03:00
void on_contrastSlider_sliderMoved(int position);
2024-11-22 23:26:42 +03:00
private:
Ui::AdjustPictureDialog *ui;
QGraphicsScene *scene;
};
#endif // ADJUSTPICTUREDIALOG_H