[Fluxus] freenect question

David Griffiths dave at pawfal.org
Sat Mar 30 14:59:37 PDT 2013


Hi Gabor,

I've been using your freenect module for tracking people in a large area
with fluxus and a kinect (skaters and BMX riders on ramps in a skate
park) and it's working really well, and was very fast to get running,
thanks!

One small thing I changed while setting up on location (without looking
into it much) was increasing the range the depth lut is calculated for
(see below) - in raw mode at the range I was using, the depth seemed to
be clipped compared to the output viewed in freenect-glview. Does this
seem sensible?

cheers,

dave

--- src/Freenect.cpp    (revision 76)
+++ src/Freenect.cpp    (working copy)
@@ -87,13 +87,13 @@
                        distance_lut[i] = k1 * tanf((i / k2) + k3);
                }
                */
-
-               for (unsigned i = 0; i < 1024; i++)
+
+               for (unsigned i = 0; i < 2048; i++)
                {
                        distance_lut[i] = 1.0 / (i * -0.0030711016 +
3.3309495161);
                }

-               memset(&distance_lut[1024], 0, 1024);
+//             memset(&distance_lut[1024], 0, 1024);
                distance_lut[0] = distance_lut[2047] = 0; // invalid values

                luts = true;

I did this in a bit of a hurry, on location but it

http://www.stephanboyer.com/post/30



More information about the Fluxus mailing list