summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/module/camera_kinect_ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt/module/camera_kinect_ir.h')
-rw-r--r--tracker-pt/module/camera_kinect_ir.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/tracker-pt/module/camera_kinect_ir.h b/tracker-pt/module/camera_kinect_ir.h
index 93c3d75b..d1f49667 100644
--- a/tracker-pt/module/camera_kinect_ir.h
+++ b/tracker-pt/module/camera_kinect_ir.h
@@ -9,6 +9,8 @@
#if __has_include(<Kinect.h>)
+#include <Kinect.h>
+
#include "pt-api.hpp"
#include "compat/timer.hpp"
@@ -55,13 +57,21 @@ private:
void operator()(cv::VideoCapture* cap);
};
- using camera_ptr = std::unique_ptr<cv::VideoCapture, camera_deleter>;
-
- camera_ptr cap;
pt_settings s;
static constexpr f dt_eps = f{1}/256;
+
+
+ // Current Kinect
+ IKinectSensor* iKinectSensor = nullptr;
+
+ // Infrared reader
+ IInfraredFrameReader* iInfraredFrameReader = nullptr;
+
+ // Frame needs to stay alive while we access the data buffer
+ IInfraredFrame* iInfraredFrame = nullptr;
+
};
} // ns pt_module