C# Class Microsoft.Samples.Kinect.RecordAndPlaybackBasics.KinectDepthView

Visualizes the Kinect Depth stream for display in the UI
Inheritance: IDisposable
Show file Open project: angelaHillier/RecordAndPlaybackBasics-WPF Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes the DepthFrameReader

KinectDepthView ( Microsoft.Kinect.KinectSensor kinectSensor ) : System

Initializes a new instance of the KinectDepthView class

Private Methods

Method Description
ProcessDepthFrameData ( IntPtr depthFrameData, uint depthFrameDataSize, ushort minDepth, ushort maxDepth ) : void

Directly accesses the underlying image buffer of the DepthFrame to create a displayable bitmap. This function requires the /unsafe compiler option as we make use of direct access to the native memory pointed to by the depthFrameData pointer.

Reader_DepthFrameArrived ( object sender, DepthFrameArrivedEventArgs e ) : void

Handles the depth frame data arriving from the sensor

RenderDepthPixels ( ) : void

Renders color pixels into the writeableBitmap.

Method Details

Dispose() public method

Disposes the DepthFrameReader
public Dispose ( ) : void
return void

KinectDepthView() public method

Initializes a new instance of the KinectDepthView class
public KinectDepthView ( Microsoft.Kinect.KinectSensor kinectSensor ) : System
kinectSensor Microsoft.Kinect.KinectSensor Active instance of the Kinect sensor
return System