-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKinectDraw.h
executable file
·63 lines (49 loc) · 1.61 KB
/
KinectDraw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* @file KinectDraw.h
* @ingroup Kinect
* @author Dominique Vaufreydaz, Grenoble Alpes University, Inria
* @copyright All right reserved.
*/
#ifndef __KINECT_DRAW_H__
#define __KINECT_DRAW_H__
#ifdef ACTIVATE_KINECT_DRAWING
#include "opencv2/video/tracking.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/video/background_segm.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#endif // ACTIVATE_KINECT_DRAWING
#include <cmath>
class KinectDraw
{
public:
KinectDraw();
virtual ~KinectDraw();
enum { NumberOfItems = 10 };
static const char * WindowNames[NumberOfItems]; // Must put a constant value...
// Viewing management
short int RGBScaleRatio;
enum {
SHOW_KINECT_NONE = 0,
SHOW_KINECT_RGB = 1,
SHOW_KINECT_DEPTH = 2,
SHOW_KINECT_IR = 4,
SHOW_KINECT_LIR = 8,
SHOW_KINECT_BODY = 16,
SHOW_KINECT_BODYINDEX = 32,
SHOW_KINECT_FACE = 64,
SHOW_KINECT_ALL = 0xffff };
void Show(short int ShowChoices);
void Hide(short int ShowChoices);
inline int GetNum( int ToDraw )
{
return (int)(log((float)ToDraw)/log(2.0f));
}
void DrawRGBFrame(unsigned char *buffer_in, int rawFile_width, int rawFile_height );
void DrawDepthFrame(unsigned char *buffer_in, int rawFile_width, int rawFile_height);
void DrawInfraredFrame(unsigned char *buffer_in, int rawFile_width, int rawFile_height);
protected:
short int ShowFlags;
void Draw16bitsFrame(int NumOfWindowName, unsigned char *buffer_in, int rawFile_width, int rawFile_height);
};
#endif // __KINECT_DRAW_H__