Core Optical, Inc.
SourceData AssignChannelData Method (  , Int32, Int32)Industrial Strength, Scientific Grade
Copies the contents of a DepthImagePixel array into the specified channel and returns a BinaryMask for the specified player index.

Namespace: PrecisionImage
Assembly: PrecisionImage (in PrecisionImage.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public BinaryMask AssignChannelData(
	DepthImagePixel[] depthData,
	int channel,
	int PlayerIndex
)

Parameters

depthData
Type:  DepthImagePixel 
An array of type DepthImagePixel encapsulating the depth data form the Kinect sensor.
channel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the data channel to populate.
PlayerIndex
Type: OnlineSystem Int32
An OnlineInt32 type indicating the player index to use when building the binary mask. The player is unmasked in the returned BinaryMask.

Return Value

A BinaryMask with the specified player unmasked.
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullException Thrown when depthData is null.
OnlineSystem ArgumentOutOfRangeException Thrown when the number of elements in depthData is not equal to the product of the rows and columns in the SourceData object.
OnlineSystem ArgumentOutOfRangeException Thrown when channel specifies a channel that does not exist.
See Also