<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - So you want to access the Kinect&#39;s cameras and ImageStreams...</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/coding4fun/kinect/So-you-want-to-access-the-Kinects-cameras-and-ImageStreams/RSS"></atom:link>
	<image>
		<url>http://files.channel9.msdn.com/thumbnail/1f663a00-a98c-4a64-a10e-7e7aec548649.png</url>
		<title>Channel 9 - So you want to access the Kinect&#39;s cameras and ImageStreams...</title>
		<link></link>
	</image>
	<description>We all know that the Kinect has two cameras, but do we all know how to access them? To get at the Image Streams provided by them? After reading today&#39;s post and looking at the project you&#39;ll be one one step closer, that&#39;s for sure... Getting most of Kinect SDK in C# - part 2 of ?: ImageStreamsThis is part two of series documenting my experiments with Kinect for Windows SDK.After first two or three articles this series should make quite good walkthrough for beginners and nice reference for more advanced developers. Part one described initialization of Kinect SDK including parameters for image capturing engine. Please refer to part one for details about initialization and general background. Series table of contents: Initialization ImageStreams Coming soon... BackgroundKinect device has two cameras: Video camera - RGB camera for capturing images Depth camera - infrared camera used to capture depth data This article will focus on getting and processing data acquired by cameras. ... What are ImageStreams?ImageStream is a class provided by KinectSDK for accessing data captured by Kinect cameras. Each Kinect Runtime has two streams: VideoStream - has to be opened with ImageStreamType.Video and ImageType.Color, ImageType.ColorYuv or ImageType.ColorYuvRaw DepthStream - has to be opened with ImageStreamType.Depth and ImageType.Depth or ImageType.DepthAndPlayerIndex ... Accessing image dataUsing any of methods mentioned above you will get an ImageFrame, which holds image data itself in Image field and some metadata such as: Type - contains type of image (ImageType) - useful in case you use same handler for both types of ImageStream FrameNumber Timestamp Resolution ... PlanarImageKinect SDK provides its own class for keeping captured images. It is as simple as it can be - it holds Width, Height, BytesPerPixel, and raw data is byte[] Bits. Video frames hold information in 32-bit XRGB or 16-bit UYVY format. Depth frames have two different formats depending on choosing Depth or DepthAndPlayerIndex stream type: 12-bit depth data (stored in two bytes with upper 4 bits unused) 3-bit player index (bits 0-2) and 12-bit depth data (starting at bit 3) Depth data of value 0 means that objects at this position are either too close or too far. PlanarImageHelper class included in sources simplifies access to individual pixels: ... How to process the images?It depend on your needs. As you can see in my example I choose the &amp;quot;iterative&amp;quot; method, because it is very simple to write and very clear to read. On the other way it has very poor performance. As the depth frame can be treated as gray scale image, you can achieve the same effects as in my example using filters easily found in all good image processing libraries - threshold and mask. First you have to decide what you really need. If you are building augmented reality application then you will need high quality video and fast image blending. If you will analyze only only part of image from time to time (face recognition for example), then you still need hi-res images, but not high fps and this means you can skip processing every frame in event handler and get frames on demand. As you can see from previous sections, Kinect SDK provides images in very raw format. This means it could be easily converted to anything you need. Most graphics libraries are able to take this raw array of bytes and create internal image representation in most efficient way. Points of InterestIf your needs are mostly image processing with depth map aid, you should stop here and look for some image processing library. But if you really want to get most of Kinect NUI, go to the next big thing - skeleton tracking engine. Project Information URL: http://www.codeproject.com/KB/miscctrl/MostOfKinectSDK2.aspx Project Download URL: http://www.codeproject.com/KB/miscctrl/MostOfKinectSDK2/JK.KinectExperiments.zip     </description>
	<link></link>
	<language>en</language>
	<pubDate>Sat, 18 May 2013 13:02:50 GMT</pubDate>
	<lastBuildDate>Sat, 18 May 2013 13:02:50 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: So you want to access the Kinect&#39;s cameras and ImageStreams...</title>
		<description>
			<![CDATA[<p>Good project and useful, Thank you<a href="http://www.aong-shop.com">.</a></p><p>posted by Bis32</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/kinect/So-you-want-to-access-the-Kinects-cameras-and-ImageStreams#c634691387525515188</link>
		<pubDate>Wed, 04 Apr 2012 12:19:12 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/kinect/So-you-want-to-access-the-Kinects-cameras-and-ImageStreams#c634691387525515188</guid>
		<dc:creator>Bis32</dc:creator>
	</item>
</channel>
</rss>