New Kinect SDK and real coordinates
-
Wednesday, March 21, 2012 4:14 AM
What is the equivalent for:
public Vector DepthImageToSkeleton(float depthX, float depthY, short depthValue);
in the new SDK
JCM
All Replies
-
Wednesday, March 21, 2012 6:03 PMOwner
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- Proposed As Answer by John Elsbree [MSFT]Owner Wednesday, March 21, 2012 6:03 PM
-
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 AMOwner
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

