Getting the depth and player index automatically
You have seen how the Kinect sensor returns the raw depth data and how you can calculate the depth and player index by applying bit masking. You can get the depth and player index automatically as well from the depth data with the help of Kinect for Windows SDK. The SDK provides a structure named DepthImagePixel
, which represents the individual pixels in DepthImageFrame
. The DepthImagePixel
structure holds the information about each individual pixel such as depth and player index. Different properties of the DepthImagePixel
structure are listed in the following table:
Name |
Description |
---|---|
|
Directly returns the depth for the current pixel, in millimeters. So, there is no bit masking required on pixel values. |
|
|