C# Class HandInput.Util.DepthUtil

Mostra file Open project: ushadow/handinput Class Usage Examples

Public Properties

Property Type Description
RefDepthImageSize System.Windows.Size

Public Methods

Method Description
GetDepthImageLength ( double renderWidth, float lengthWorld, float distWorld ) : double

length in depth image / length in world = focal length / distance in world

GetDepthImagePoint ( double renderWidth, double renderHeight, Microsoft.Kinect.SkeletonPoint sp ) : Point
RawToDepth ( short raw ) : int
RawToPlayerIndex ( short raw ) : int

Method Details

GetDepthImageLength() public static method

length in depth image / length in world = focal length / distance in world
public static GetDepthImageLength ( double renderWidth, float lengthWorld, float distWorld ) : double
renderWidth double in pixel
lengthWorld float in m
distWorld float in m
return double

GetDepthImagePoint() public static method

public static GetDepthImagePoint ( double renderWidth, double renderHeight, Microsoft.Kinect.SkeletonPoint sp ) : Point
renderWidth double
renderHeight double
sp Microsoft.Kinect.SkeletonPoint
return Point

RawToDepth() public static method

public static RawToDepth ( short raw ) : int
raw short
return int

RawToPlayerIndex() public static method

public static RawToPlayerIndex ( short raw ) : int
raw short
return int

Property Details

RefDepthImageSize public_oe static_oe property

public static Size,System.Windows RefDepthImageSize
return System.Windows.Size