我试图用 kinect 做一些联合跟踪(只是在我的右手里放一个椭圆)对于默认的 640x480 图像一切正常,我以这个channel9 视频为基础。我的代码,更新为使用新的 CoordinateMapper 类在这里
...
CoordinateMapper cm = new CoordinateMapper(this.KinectSensorManager.KinectSensor);
ColorImagePoint handColorPoint = cm.MapSkeletonPointToColorPoint(atualSkeleton.Joints[JointType.HandRight].Position, ColorImageFormat.RgbResolution640x480Fps30);
Canvas.SetLeft(elipseHead, (handColorPoint.X) - (elipseHead.Width / 2)); // center of the ellipse in center of the joint
Canvas.SetTop(elipseHead, (handColorPoint.Y) - (elipseHead.Height / 2));
这行得通。问题是:
如何在缩放图像中进行联合跟踪,例如 540x380?