Hello,
I'm developing hand tracking base application. And I have a question about PXCGesture::GeoNode structure.
In the document(sdkmanual-gesture.pdf), PXCGesture::GeoNode.positionImage is
The node position in image space coordinates, in (x,y,d), where (x,
y) are coordinates in the depth image, and d is the distance to the
camera in meters.
But, positionImage has not d but z. And z is always 0. (I tested this on C++ and C#.)
How can I get depth from positionImage? or depth is always 0 at all and should get it from positionWorld?
Here is some of my code changed only OnNewFrame function from the gesture_viewer_simple.cs sample.
public override bool OnNewFrame() {
PXCMGesture gesture = QueryGesture();
PXCMGesture.GeoNode ndata;
pxcmStatus sts = gesture.QueryNodeData(0, PXCMGesture.GeoNode.Label.LABEL_BODY_HAND_PRIMARY, out ndata);
if (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR)
{
Console.WriteLine("node HAND_MIDDLE ({0},{1},{2})", ndata.positionImage.x, ndata.positionImage.y, ndata.positionImage.z);
}
return (++nframes < 50000);
}
Thank you.



