Export (0) Print
Expand All

Background Removal Basics-WPF C# Sample

Kinect for Windows 1.8

Overview

This sample demonstrates how to use the Microsoft.Kinect.Toolkit.BackgroundRemoval API to separate people in the foreground from the background. This effect is similar to using a green screen technique to separate people from a green screen background. This sample is an improved version of the Coordinate Mapping Basics-WPF C# Sample. This sample performs background removal on the first tracked player until the player goes out of view.

When you run this sample, you see the following:

  • A background image.
  • If you move in front of the camera, your body is rendered over the background image. This is done using the Microsoft.Kinect.Toolkit.BackgroundRemoval API.
  • Select Near Mode to change the range of the depth data.
  • Click Screenshot to capture the current screen and save it to a file.

To run a sample you must have the Kinect for Windows SDK installed. To compile a sample, you must have the developer toolkit installed. The latest SDK and developer toolkit are available on the developer download page. If you need help installing the toolkit, look on this page: To Install the SDK and Toolkit. The toolkit includes a sample browser, which you can use to launch a sample or download it to your machine. To open the sample browser, click Start > All Programs > Kinect for Windows SDK [version number] > Developer Toolkit Browser.

If you need help loading a sample in Visual Studio or using Visual Studio to compile, run, or debug, see Opening, Building, and Running Samples in Visual Studio.

Community Additions

ADD
Show:
© 2015 Microsoft