-
Notifications
You must be signed in to change notification settings - Fork 0
/
DrawInfraredView.h
executable file
·61 lines (46 loc) · 1.95 KB
/
DrawInfraredView.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
/**
* @file DrawInfraredView.h
* @ingroup Drawing Kinect
* @author Dominique Vaufreydaz, Grenoble Alpes University, Inria
* @copyright All right reserved.
*/
#ifndef __DRAW_INFRARED_VIEW_H__
#define __DRAW_INFRARED_VIEW_H__
#ifdef KINECT_1
// No infrared stream from Kinect1
#endif // KINECT_1
#ifdef KINECT_2
#include "DrawRawData.h"
#define InfraredFileName "/infrared/infrared.timestamp" /*!< @brief Timestamp file for the infrared input from Kinect1 or Kinect2 */
#define RawInfraredFileName "/infrared/infrared.raw" /*!< @brief Raw file for the infrared input from Kinect1 or Kinect2 */
namespace MobileRGBD { namespace Kinect2 {
/**
* @class DrawInfraredView DrawInfraredView.cpp DrawInfraredView.h
* @brief Class to draw video stream from the Kinect2 data.
*
* @author Dominique Vaufreydaz, Grenoble Alpes University, Inria
*/
class DrawInfraredView : public DrawRawData
{
public:
/** @brief constructor. Draw data from the infrared stream of the Kinect2.
*
* @param Folder [in] Main folder containing the data. Body data will be search in 'Folder/infrared/' subfolder.
* @param SizeOfFrame [in] Size of each frame. Default value = InfraredWidth*InfraredHeight*InfraredBytesPerPixel.
*/
DrawInfraredView( const std::string& Folder, int SizeOfFrame = InfraredWidth*InfraredHeight*InfraredBytesPerPixel );
/** @brief Virtual destructor, always.
*/
virtual ~DrawInfraredView();
/** @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 // KINECT_2
#endif // __DRAW_INFRARED_VIEW_H__