-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrawBodyIndexView.h
More file actions
executable file
·57 lines (44 loc) · 1.98 KB
/
DrawBodyIndexView.h
File metadata and controls
executable file
·57 lines (44 loc) · 1.98 KB
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
/**
* @file DrawBodyIndexView.h
* @ingroup Drawing Kinect
* @author Dominique Vaufreydaz, Grenoble Alpes University, Inria
* @copyright All right reserved.
*/
#ifndef __DRAW_BODY_INDEX__VIEW_H__
#define __DRAW_BODY_INDEX__VIEW_H__
#ifdef KINECT_2
#include "DrawRawData.h"
namespace MobileRGBD { namespace Kinect2 {
#define BodyIndexFileName "/body_index/body_index.timestamp" /*!< @brief Timestamp file for the body_index from Kinect2 */
#define RawBodyIndexFileName "/body_index/body_index.raw" /*!< @brief Raw file for the body_index from Kinect2 */
/**
* @class DrawBodyIndexView DrawBodyIndexView.cpp DrawBodyIndexView.h
* @brief Class to draw BodyIndex from the Kinect data.
*
* @author Dominique Vaufreydaz, Grenoble Alpes University, Inria
*/
class DrawBodyIndexView : public DrawRawData
{
public:
static unsigned char Colors[6][3]; /*!< @brief shared BRG color index for body drawing. First body will always have the sale color, etc. */
/** @brief constructor. Draw data from the Body stream of the Kinect2.
*
* @param Folder [in] Main folder containing the data. Body data will be search in 'Folder/body_index/' subfolder.
* @param SizeOfFrame [in] Size of each frame. Default value = DepthWidth*DepthHeight (1 byte per pixel).
*/
DrawBodyIndexView( const std::string& Folder, int SizeOfFrame = DepthWidth*DepthHeight ); // 1 byte per pixel
/** @brief Virtual destructor, always.
*/
virtual ~DrawBodyIndexView();
/** @brief ProcessElement is a callback function called by mother classes when data are ready.
*
* @param RequestTimestamp [in] The timestamp of the data.
* @param UserData [in] User pointer to working data. Here a pointer to a cv:Mat to draw in.
*/
virtual bool ProcessElement( const TimeB &RequestTimestamp, void * UserData = nullptr );
protected:
unsigned char * ImageBuffer; /*!< @brief Buffer to work on the data. */
};
}} // namespace MobileRGBD::Kinect2
#endif
#endif // __DRAW_BODY_INDEX__VIEW_H__