Proposed New Kinect SDK and real coordinates

All Replies

  • Wednesday, March 21, 2012 6:03 PM
    Owner
     
     Proposed

    Either of these can be used:

    On DepthImageFrame:
            public SkeletonPoint MapToSkeletonPoint(int depthX, int depthY);

    Or, on KinectSensor:
            public SkeletonPoint MapDepthToSkeletonPoint(DepthImageFormat depthImageFormat, int depthX, int depthY, short depthPixelValue);

    John
    K4W Dev

  • Tuesday, March 27, 2012 3:36 AM
     
     

    Question if I use :

        public SkeletonPoint MapDepthToSkeletonPoint(DepthImageFormat depthImageFormat, int depthX, int depthY, short depthPixelValue);

    depthPixelValue should be in milimiters?


    JCM

  • Wednesday, March 28, 2012 5:53 AM
    Owner
     
     

    depthPixelValue should be a value in the format that appears in the DepthImageFrame. This is a 16-bit value in which the uppermost 13 bits are the depth in millimeters, and the lower 3 bits are the player index, if any.

    If you already have a value in millimeters, you can pass this expression as depthPixelValue:

    depthInMillimeters << DepthImageFrame.PlayerIndexBitmaskWidth

    John
    K4W Dev