I have to get the real world coordinates (x, y, z) using Kinect. Actually, I want the x, y, z distance (in meters) from Kinect. I have to get these coordinates from a unique
The Z distance (from object to kinect) you get from Position.Z of a specific Joint. So there is no problem with getting it. The X and Y. It depends do you want to get distance from joint to joint or from joint to Kinect. You can calculate it. Use the math. You need to take angle of view of kinect and distance from it
You would need to use both the Color Stream and the Depth Stream.
First, using the Color Stream
you would need to collect an array of pixels that match the color you are looking for and then lookup the depth data from the Depth Stream
for those pixels to get an average distance from the camera. That gives you the Z
.
To get the X
and Y
you would use the math from this answer.