In the newest Linux kernel, it supports Kinect through a driver. I want access to the RGB and D (depth) streams and put them into a 2D array, either 64bit ints, or two separate arrays will work. C# is preferred, C++ is acceptable.
So my question is: where can I find more information about this, e.g., articles and documentation? What would a simple example program look like, e.g., printing the color and depth at position 100×100?
I’ll up-vote any good links, and accept the first working code sample.
Thanks,
Frankie
P.s., I’m aware of the OpenKinect, NITE, Microsoft SDK, etc., projects. I want this to be easy for me to install on other computers and Linux distros which is why the common kernel driver is preferred. My main use will be a web-cam that replaces pixels further away than depth X and saves to disk.
Update
Since asking I haven’t gotten much further. I found this article. I checked out the Git repo, which doesn’t seem to have been updated since April and I don’t see any connection to the Linux Kernel or it ever being incorporated. There’s no mention of Kinect in any later blog posts there, other than this unrelated one.
Update 2
I can’t seem to find who applied the Kinect driver to the kernel. There is a mirror of the kernel on GitHub. I tried using Google to search it, but this query and variations didn’t turn up anything. Then I tried searching GitHub with no positive hits. Does anyone have any information?
Unfortunately, the driver doesn’t support the depth stream, only an unprocessed image from the monochrome sensor. So it’s not possible using only the kernel driver. See also a blog post I wrote on this subject. If you remove the built-in kernel modules, you can do it with libfreenect though.
You can find the driver file here on GitHub: kinect.c.