Kinect for Windows SDK– color stream

  Color Stream in WPF Application Add Image control in MainWindow.xaml in the Window Grid <Image Name="kinectColorImage" /> Setup Kinect sensor object to retrieve first available sensor, other variables to hold color pixel data and a writeable bitmap object to write pixel onto it. KinectSensor sensor = KinectSensor.KinectSensors[0]; private byte[] colorPixelData; private WriteableBitmap outputImage; Add…

1

Kinect for Windows SDK–Depth stream

  Depth Stream in WPF Application Add Image control in MainWindow.xaml in the Window grid <Image Name=”kinectDepthImage” /> KinectSensor sensor = KinectSensor.KinectSensors[0]; private short[] depthPixelData; private byte[] depthFrame32; private WriteableBitmap outputBitmap; Add enabling depth stream in MainWindow() constructor of Main.Window.xaml sensor.DepthStream.Enable(DepthImageFormat.Resolution640x480Fps30); sensor.DepthFrameReady += new EventHandler<DepthImageFrameReadyEventArgs>(sensor_DepthFrameReady); sensor.Start(); Add Depth frame ready handler void sensor_DepthFrameReady(object sender, DepthImageFrameReadyEventArgs…

1