How to align kinect's depth image with color image
The image produced by the color and depth sensor on the Kinect are slightly out of alignment. How can I transform them to make them line up? The key to this is the call to 'Runtime.NuiCamera.GetColorPixelCoordinatesFromDepthPixel' Here is an extension method for the Runtime class. It returns a WriteableBitmap object. This WriteableBitmap is automatically updated as new frames come in. So the usage of it is really simple: kinect = new Runtime(); kinect.Initialize(RuntimeOptions.UseColor | RuntimeOptions.UseSkeletalTracking | RuntimeOptions.UseDepthAndPlayerIndex); kinect.DepthStream.Open