none
SDK 1.0 FloorClipPlane RRS feed

  • Question

  • Hi all,

    Quick one this, can  someone just clarify in SDK 1 the FloorClipPlane has properties called item1, item2, item3 and item4. 

    Do these values correspond to the values in the beta SDK such that: 

    FloorClipPlane.X is now Item1.

    FloorClipPlane.Y is now Item2.

    FloorClipPlane.Z is now Item3.

    FloorClipPlane.W is now Item4.  

    Can someone confirm this, and perhaps why they are now called Item1-4, seems odd to call the properties this. 

    Cheers

    Will

    Saturday, March 31, 2012 2:44 PM

All replies

  • Hi there, from the kinect documentation;

    Floor Determination

    Each skeleton frame also contains a floor clip plane vector, which contains the coefficients of an estimated floor plane equation. The skeleton tracking system updates this estimate for each frame and uses it as a clipping plane for removing the background and segmentation of players. The general plane equation is:
     
    Ax + By + Cz + D = 0

    where:

      A = vFloorClipPlane.x
      B = vFloorClipPlane.y
      C = vFloorClipPlane.z
      D = vFloorClipPlane.w

    The equation is normalized so that the physical interpretation of D is the height of the camera from the floor, in meters. It is worth noting that the floor might not always be visible. In this case, the floor clip plane is a zero vector.

    Someone posted this on their blog too if you can't find it; http://deviak.com/2690172

    If you have any queries about it, I can answer any questions you might have about it as I've used the values it's given me in a floor scan equation (thread here; http://social.msdn.microsoft.com/Forums/en-US/kinectsdknuiapi/thread/f9d2fc04-8dcb-4dd1-b9bb-062997cf5c38)

    Hope that helps :)

    Sunday, April 1, 2012 1:55 PM
  • Thanks for the reply. 

    Yeah I get that but the actual properties of the FloorClipPlane are called Iterm1 to Item4. So when you say A=FloorClipPlane.x etc do you actually mean Item1=FloorClipPlane.x or am I just not understanding you. 

    Here is how I am getting the floor clip plane by the way if it helps: 

    using (SkeletonFrame skeletonFrameData = e.OpenSkeletonFrame())
    {   
    dist_floor_x = skeletonFrameData.FloorClipPlane.Item1; 
    dist_floor_y = skeletonFrameData.FloorClipPlane.Item2;
    dist_floor_z = skeletonFrameData.FloorClipPlane.Item3;           
    dist_floor_w = skeletonFrameData.FloorClipPlane.Item4;
    }
    

    Cheers

    Sunday, April 1, 2012 8:41 PM
  • Hi, yes, sorry that's what I mean. They were known as A, B, C, D in the beta SDK and I just renamed them in the v1.0 SDK

                    A = skeletonFrameData.FloorClipPlane.Item1;
                    B = skeletonFrameData.FloorClipPlane.Item2;
                    C = skeletonFrameData.FloorClipPlane.Item3;
                    D = skeletonFrameData.FloorClipPlane.Item4;

    But yeah, to answer your original question, you are correct (sorry, I didn't mean to make this long winded and confuse you, a simple "yes" would have sufficed!) :)
    Tuesday, April 3, 2012 9:35 AM
  • Ha, no problem mate. Thanks for clearing things up. 

    Cheers :) 


    Tuesday, April 3, 2012 9:50 AM