direcs
2012-09-30
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
glwidget.h
Go to the documentation of this file.
1
#ifndef GLWIDGET_H
2
#define GLWIDGET_H
3
4
#include <QGLWidget>
5
#include <QtOpenGL>
6
7
#include <opencv2/core/core.hpp>
8
#include <opencv2/imgproc/imgproc.hpp>
9
#include <opencv2/highgui/highgui.hpp>
10
11
#include "
QKinect.h
"
12
13
14
class
GLWidget
:
public
QGLWidget
15
{
16
Q_OBJECT
17
18
public
:
19
GLWidget
(QWidget *_parent);
20
21
void
sendImage
(cv::Mat *img);
22
24
cv::Mat
qimage2mat
(
const
QImage& qimage);
25
27
QImage
mat2qimage
(
const
cv::Mat& mat);
28
30
void
processOpenCV
();
31
32
33
protected
:
34
void
initializeGL
();
35
void
paintGL
();
36
void
resizeGL
(
int
width,
int
height);
37
38
39
private
:
41
void
timerEvent
(QTimerEvent *_event);
42
43
44
QImage
qframe
;
45
46
cv::Mat
mImage
;
// OpenCV test
47
49
std::vector<uint8_t>
m_rgb
;
50
};
51
52
#endif // GLWIDGET_H
direcs
src
glwidget.h
Generated on Sat Feb 2 2013 21:41:01 for direcs by
1.8.1.1