Reworked RawImage class to use OpenCV

This commit is contained in:
2020-05-10 17:02:16 +02:00
parent fcc1696c2c
commit 1e45a78b39
9 changed files with 265 additions and 227 deletions
+3 -1
View File
@@ -28,6 +28,7 @@ class ImageScrollAreaGL : public QOpenGLWidget
std::unique_ptr<QOpenGLBuffer> m_buffer;
std::unique_ptr<QOpenGLTexture> m_image;
std::unique_ptr<QOpenGLVertexArrayObject> m_vao;
std::unique_ptr<QOpenGLPixelTransferOptions> m_transferOptions;
int m_width, m_height;
float m_low;
float m_high;
@@ -35,7 +36,8 @@ class ImageScrollAreaGL : public QOpenGLWidget
public:
explicit ImageScrollAreaGL(QWidget *parent = nullptr);
~ImageScrollAreaGL();
void setImage(RawImageAbs *image);
void setImage(RawImage *image);
void setImage(const QPixmap &pixmap);
public slots:
void setLow(int low);
void setHigh(int high);