Share via


BackgroundRemovedColorStream.SetTrackedPlayer Method

Kinect for Windows 1.8

Sets the tracking ID of the person to track.

Syntax

public void SetTrackedPlayer (
         int trackingId
)

Parameters

  • trackingId
    Type: Int32
    The tracking ID of the person that is considered to be in the foreground. If there is not a currently-tracked skeleton with this tracking ID, no skeleton will be tracked and the output frame will be completely transparent.

Remarks

This method configures this BackgroundRemovedColorStream to perform background removal such that only those pixels that correspond to the skeleton with the specified tracking ID will remain.

Requirements

Namespace: Microsoft.Kinect.Toolkit.BackgroundRemoval

Assembly: Microsoft.Kinect.Toolkit.BackgroundRemoval (in microsoft.kinect.toolkit.backgroundremoval.dll)

See Also

Reference

BackgroundRemovedColorStream Class
BackgroundRemovedColorStream Members
Microsoft.Kinect.Toolkit.BackgroundRemoval Namespace