summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/module/camera_kinect_ir.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-03-17 18:06:27 +0100
committerStéphane Lenclud <github@lenclud.com>2019-03-17 18:06:27 +0100
commit6d98d70ea4be87f8bf9a5304bd6defe795df21f9 (patch)
treebfb0584637f6c7d171f7cfc640c393351ac04293 /tracker-pt/module/camera_kinect_ir.h
parent21a98425adafb444a649db9496e9ce78371c87e4 (diff)
First working draft.
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