Allows to display disparity or depth maps in 3D with a built-in mouse and keyboard interaction.
More...
#include <qt5disparitymapgpuwidget.h>
|
void | paintGL () |
|
void | initializeGL () |
|
void | resizeGL (int w, int h) |
|
void | mousePressEvent (QMouseEvent *event) |
|
void | mouseMoveEvent (QMouseEvent *event) |
|
void | wheelEvent (QWheelEvent *event) |
|
void | keyPressEvent (QKeyEvent *event) |
|
void | init_cuda () |
|
|
cudaGraphicsResource_t | cuda_positions_ |
|
QOpenGLBuffer | vbo_ |
|
iu::Size< 2 > | image_size_ |
|
QOpenGLShaderProgram * | shader_program_ |
|
QOpenGLVertexArrayObject * | vao_ |
|
QMatrix4x4 | r_mat_ |
|
QPoint | rot_pos_ |
|
QPoint | trans_pos_ |
|
float | translation_z_ |
|
float | translation_x_ |
|
float | translation_y_ |
|
float | initial_translation_z_ |
|
float | point_size_ |
|
bool | data_set_ |
|
float | f_ |
|
float | cx_ |
|
float | cy_ |
|
float | B_ |
|
Allows to display disparity or depth maps in 3D with a built-in mouse and keyboard interaction.
All data is kept on the graphics card, OpenGL is responsible for rendering the generated point-cloud.
iu::Qt5DisparitymapGpuWidget::Qt5DisparitymapGpuWidget |
( |
const iu::Size< 2 > |
sz, |
|
|
float |
translation_z, |
|
|
float |
f, |
|
|
float |
cx, |
|
|
float |
cy, |
|
|
float |
B = 0.f , |
|
|
QWidget * |
parent = NULL |
|
) |
| |
|
explicit |
The non-default constructor
- Parameters
-
sz | Output image size |
translation_z | Where to put the camera initially? [0,0,translation_z] |
f | Focal length of virtual camera |
cx | x-coordinate of principal point |
cy | y-coordinate of principal point |
B | Baseline in the case of disparity maps. If 0, then the input is expected to be a depth map |
parent | Parent widget |
Set a new disparity/depthmap
- Parameters
-
depth | A depthmap in float format |
im | A grayscale image in float format, registered to depth |
The documentation for this class was generated from the following file:
- /home/christian/workdir/postdoc/projects/mobile-vision-private/software/libs/mobilevision/imageutilities/include/iu/iugui/qt5disparitymapgpuwidget.h