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 のスケーリングされた画像でジョイント トラッキングを行うにはどうすればよいですか?