Reworked RawImage class to use OpenCV
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user