C# 클래스 HandInput.Util.SkeletonUtil

Utilitiy functions related to the Skeleton class in Microsoft Kinect.
파일 보기 프로젝트 열기: ushadow/handinput 1 사용 예제들

공개 메소드들

메소드 설명
DepthToSkeleton ( Rectangle rect, byte depthData, int width, int height, CoordinateConverter mapper ) : Microsoft.Kinect.SkeletonPoint
Distance ( Microsoft.Kinect.SkeletonPoint p1, Microsoft.Kinect.SkeletonPoint p2 ) : float
FirstTrackedSkeleton ( Microsoft.Kinect.Skeleton skeletons ) : Microsoft.Kinect.Skeleton
FirstTrackedSkeletonIndex ( Microsoft.Kinect.Skeleton skeletons ) : int

Finds the first tracked skeleton from all the skeletons. The possible SkeletonTrackingStates are Tracked, PositionOnly and NonTracked.

GetFaceModel ( Microsoft.Kinect.Skeleton skeleton, CoordinateConverter mapper ) : FaceModel

Computes the head circle in the depth image.

GetJoint ( Microsoft.Kinect.Skeleton s, JointType jointType ) : Microsoft.Kinect.Joint
PointDirection ( Microsoft.Kinect.SkeletonPoint hand, Microsoft.Kinect.SkeletonPoint elbow ) : System.Windows.Media.Media3D.Vector3D
RelativePosToShoulder ( Microsoft.Kinect.SkeletonPoint point, Microsoft.Kinect.Skeleton skeleton ) : System.Windows.Media.Media3D.Vector3D

Relative position to the shoulder center joint in world coordinates.

SkeletonDistance2 ( Microsoft.Kinect.Skeleton s1, Microsoft.Kinect.Skeleton s2 ) : float

Average squared distance between the corresponding tracked joints of two skeletons.

Sub ( Microsoft.Kinect.SkeletonPoint sp1, Microsoft.Kinect.SkeletonPoint sp2 ) : System.Windows.Media.Media3D.Vector3D

Subtract the coordinate of sp2 from sp1.

ToFormatedString ( this sp ) : String

Creates a formated string for a SkeletonPoint.

비공개 메소드들

메소드 설명
Distance2 ( Microsoft.Kinect.SkeletonPoint p1, Microsoft.Kinect.SkeletonPoint p2 ) : float

메소드 상세

DepthToSkeleton() 공개 정적인 메소드

public static DepthToSkeleton ( Rectangle rect, byte depthData, int width, int height, CoordinateConverter mapper ) : Microsoft.Kinect.SkeletonPoint
rect System.Drawing.Rectangle
depthData byte
width int
height int
mapper CoordinateConverter
리턴 Microsoft.Kinect.SkeletonPoint

Distance() 공개 정적인 메소드

public static Distance ( Microsoft.Kinect.SkeletonPoint p1, Microsoft.Kinect.SkeletonPoint p2 ) : float
p1 Microsoft.Kinect.SkeletonPoint
p2 Microsoft.Kinect.SkeletonPoint
리턴 float

FirstTrackedSkeleton() 공개 정적인 메소드

public static FirstTrackedSkeleton ( Microsoft.Kinect.Skeleton skeletons ) : Microsoft.Kinect.Skeleton
skeletons Microsoft.Kinect.Skeleton
리턴 Microsoft.Kinect.Skeleton

FirstTrackedSkeletonIndex() 공개 정적인 메소드

Finds the first tracked skeleton from all the skeletons. The possible SkeletonTrackingStates are Tracked, PositionOnly and NonTracked.
public static FirstTrackedSkeletonIndex ( Microsoft.Kinect.Skeleton skeletons ) : int
skeletons Microsoft.Kinect.Skeleton An array of all skeletons.
리턴 int

GetFaceModel() 공개 정적인 메소드

Computes the head circle in the depth image.
public static GetFaceModel ( Microsoft.Kinect.Skeleton skeleton, CoordinateConverter mapper ) : FaceModel
skeleton Microsoft.Kinect.Skeleton
mapper CoordinateConverter
리턴 FaceModel

GetJoint() 공개 정적인 메소드

public static GetJoint ( Microsoft.Kinect.Skeleton s, JointType jointType ) : Microsoft.Kinect.Joint
s Microsoft.Kinect.Skeleton
jointType JointType
리턴 Microsoft.Kinect.Joint

PointDirection() 공개 정적인 메소드

public static PointDirection ( Microsoft.Kinect.SkeletonPoint hand, Microsoft.Kinect.SkeletonPoint elbow ) : System.Windows.Media.Media3D.Vector3D
hand Microsoft.Kinect.SkeletonPoint
elbow Microsoft.Kinect.SkeletonPoint
리턴 System.Windows.Media.Media3D.Vector3D

RelativePosToShoulder() 공개 정적인 메소드

Relative position to the shoulder center joint in world coordinates.
public static RelativePosToShoulder ( Microsoft.Kinect.SkeletonPoint point, Microsoft.Kinect.Skeleton skeleton ) : System.Windows.Media.Media3D.Vector3D
point Microsoft.Kinect.SkeletonPoint
skeleton Microsoft.Kinect.Skeleton
리턴 System.Windows.Media.Media3D.Vector3D

SkeletonDistance2() 공개 정적인 메소드

Average squared distance between the corresponding tracked joints of two skeletons.
public static SkeletonDistance2 ( Microsoft.Kinect.Skeleton s1, Microsoft.Kinect.Skeleton s2 ) : float
s1 Microsoft.Kinect.Skeleton One skeleton.
s2 Microsoft.Kinect.Skeleton Another skeleton.
리턴 float

Sub() 공개 정적인 메소드

Subtract the coordinate of sp2 from sp1.
public static Sub ( Microsoft.Kinect.SkeletonPoint sp1, Microsoft.Kinect.SkeletonPoint sp2 ) : System.Windows.Media.Media3D.Vector3D
sp1 Microsoft.Kinect.SkeletonPoint
sp2 Microsoft.Kinect.SkeletonPoint
리턴 System.Windows.Media.Media3D.Vector3D

ToFormatedString() 공개 정적인 메소드

Creates a formated string for a SkeletonPoint.
public static ToFormatedString ( this sp ) : String
sp this
리턴 String