Finished Temporal Sync Feature

This commit is contained in:
Christopher Remde
2020-07-08 13:55:48 +02:00
parent da2c304db8
commit 1544abd276
17 changed files with 390 additions and 118 deletions
+9 -2
View File
@@ -11,12 +11,17 @@ public:
AzureKinectCapture();
~AzureKinectCapture();
bool Initialize();
bool Initialize(bool asMaster, bool asSubOrdinate, int syncOffset);
bool Close();
bool AcquireFrame();
void MapDepthFrameToCameraSpace(Point3f *pCameraSpacePoints);
void MapColorFrameToCameraSpace(Point3f *pCameraSpacePoints);
void MapDepthFrameToColorSpace(UINT16 *pDepthInColorSpace);
void MapColorFrameToDepthSpace(RGB *pColorInDepthSpace);
int GetSyncJackState();
uint64_t GetTimeStamp();
private:
k4a_device_t kinectSensor = NULL;
int32_t captureTimeoutMs = 1000;
@@ -27,6 +32,8 @@ private:
k4a_image_t colorImageInDepth = NULL;
k4a_image_t depthImageInColor = NULL;
k4a_transformation_t transformation = NULL;
bool syncInConnected = false;
bool syncOutConnected = false;
uint64_t currentTimeStamp;
void UpdateDepthPointCloud();
};