O'Reilly logo

Kinect for Windows SDK Programming Guide by Abhijit Jana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Capturing and processing depth data

To capture the depth data from the Kinect sensor, the program should use exactly the same flow as we used to read the color data stream in the previous chapters.

  1. Enable the depth stream channel with the type of depth image format.
  2. Attach the event handler to the stream channel.
  3. Process the incoming depth frames.
  4. Render the frames on UI.

To start with, you can build a basic WPF application that can capture the raw depth stream and display it. We will extend this application, going forward to explore other features of depth data such as calculating distance and finding player indexes. Perform the following steps to set up a blank project for your DepthCam application:

  1. Start a new instance of Visual Studio.
  2. Create a new ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required