Added the option to only stream the body data (skeleton and body point cloud) instead of everything.

This commit is contained in:
marek
2015-11-06 18:48:15 +01:00
parent 948eee769e
commit ef1c5ac2ce
10 changed files with 116 additions and 40 deletions
+1
View File
@@ -43,6 +43,7 @@ public:
int nDepthFrameHeight, nDepthFrameWidth;
UINT16 *pDepth;
BYTE *pBodyIndex;
RGB *pColorRGBX;
std::vector<Body> vBodies;
};
+1
View File
@@ -39,4 +39,5 @@ private:
void GetDepthFrame(IMultiSourceFrame* pMultiFrame);
void GetColorFrame(IMultiSourceFrame* pMultiFrame);
void GetBodyFrame(IMultiSourceFrame* pMultiFrame);
void GetBodyIndexFrame(IMultiSourceFrame* pMultiFrame);
};
+2 -1
View File
@@ -40,6 +40,7 @@ private:
bool m_bCalibrate;
bool m_bFilter;
bool m_bStreamOnlyBodies;
ICapture *pCapture;
@@ -86,7 +87,7 @@ private:
void SendFrame(vector<Point3f> vertices, vector<RGB> RGB, vector<Body> body);
void SocketThreadFunction();
void StoreFrame(Point3f *vertices, Point2f *mapping, RGB *color, vector<Body> &bodies);
void StoreFrame(Point3f *vertices, Point2f *mapping, RGB *color, vector<Body> &bodies, BYTE* bodyIndex);
void ShowFPS();
void ReadIPFromFile();
void WriteIPToFile();