-
Book Overview & Buying
-
Table Of Contents
Kinect for Windows SDK Programming Guide
By :
As we all know, IR is invisible to the human eye as it has a longer wavelength than the highest wavelength that a human eye can see in a spectrum. This same disadvantage of human beings is used as an advantage by using an IR light to see in the dark. The Kinect SDK provides an API that can help us read the same data.
Capturing IR stream data is as simple as capturing a color image stream, as the SDK returns the infrared stream as a part of the color image stream data. The only changes are ColorImageFormat and PixelFormats. You can simply change the following two sections in the code block that we have discussed in the Capturing color image from the Kinect camera section.
Enable the ColorStream with InfraredResolution640x480Fps30:
this.sensor.ColorStream.Enable(ColorImageFormat.InfraredResolution640x480Fps30);
Set the PixelFormats to Gray16 while creating the bitmap source as assigning it to image control:
this.VideoControl.Source = BitmapSource.Create( imageFrame.Width, imageFrame...
Change the font size
Change margin width
Change background colour