我能知道如何解决这个问题吗?我正在创建一个 kinect 将图像放置在骨骼关节上。
http://i860.photobucket.com/albums/ab166/season04/Untitled_zps8781ac62.png
代码如下:
private void button1_Click(object sender, RoutedEventArgs e)
{
foreach (SkeletonData data in e.SkeletonFrame.Skeletons)
{
foreach (Joint joint in data.Joints)
{
if (joint.Position.W < 0.6f) return;
switch (joint.ID)
{
case JointID.Head:
var heanp = getDisplayPosition(joint);
Canvas.SetLeft(imgHead, heanp.X);
Canvas.SetTop(imgHead, heanp.Y);
break;
}
}
}
}