C# Class HandInput.Util.CoordinateConverter

Maps points between color, depth and skeleton coordinates.
Mostrar archivo Open project: ushadow/handinput Class Usage Examples

Public Methods

Method Description
CoordinateConverter ( CoordinateMapper mapper, ColorImageFormat cif, DepthImageFormat dif ) : System
CoordinateConverter ( IEnumerable kinectParams, ColorImageFormat cif, DepthImageFormat dif ) : System
MapDepthPointToColorPoint ( int x, int y, int depth ) : ColorImagePoint

Maps a point in the depth image to a point in the color image.

MapDepthPointToSkeletonPoint ( DepthImagePoint depthImagePoint ) : Microsoft.Kinect.SkeletonPoint
MapDepthPointToSkeletonPoint ( int x, int y, int depth ) : Microsoft.Kinect.SkeletonPoint
MapDepthRectToColorRect ( Rectangle depthRect, short depthPixel, int width, int height ) : Rectangle

MapSkeletonPointToColorPoint ( Microsoft.Kinect.SkeletonPoint sp ) : ColorImagePoint
MapSkeletonPointToDepthPoint ( Microsoft.Kinect.SkeletonPoint sp ) : DepthImagePoint

Private Methods

Method Description
Clip ( int v, int min, int max ) : int

Method Details

CoordinateConverter() public method

public CoordinateConverter ( CoordinateMapper mapper, ColorImageFormat cif, DepthImageFormat dif ) : System
mapper CoordinateMapper
cif ColorImageFormat
dif DepthImageFormat
return System

CoordinateConverter() public method

public CoordinateConverter ( IEnumerable kinectParams, ColorImageFormat cif, DepthImageFormat dif ) : System
kinectParams IEnumerable
cif ColorImageFormat
dif DepthImageFormat
return System

MapDepthPointToColorPoint() public method

Maps a point in the depth image to a point in the color image.
public MapDepthPointToColorPoint ( int x, int y, int depth ) : ColorImagePoint
x int x coordinate in the depth image.
y int y coordinate in the depth image.
depth int correspoinding depth at (x, y).
return ColorImagePoint

MapDepthPointToSkeletonPoint() public method

public MapDepthPointToSkeletonPoint ( DepthImagePoint depthImagePoint ) : Microsoft.Kinect.SkeletonPoint
depthImagePoint DepthImagePoint
return Microsoft.Kinect.SkeletonPoint

MapDepthPointToSkeletonPoint() public method

public MapDepthPointToSkeletonPoint ( int x, int y, int depth ) : Microsoft.Kinect.SkeletonPoint
x int
y int
depth int
return Microsoft.Kinect.SkeletonPoint

MapDepthRectToColorRect() public method

public MapDepthRectToColorRect ( Rectangle depthRect, short depthPixel, int width, int height ) : Rectangle
depthRect System.Drawing.Rectangle
depthPixel short
width int frame width
height int frame height
return System.Drawing.Rectangle

MapSkeletonPointToColorPoint() public method

public MapSkeletonPointToColorPoint ( Microsoft.Kinect.SkeletonPoint sp ) : ColorImagePoint
sp Microsoft.Kinect.SkeletonPoint
return ColorImagePoint

MapSkeletonPointToDepthPoint() public method

public MapSkeletonPointToDepthPoint ( Microsoft.Kinect.SkeletonPoint sp ) : DepthImagePoint
sp Microsoft.Kinect.SkeletonPoint
return DepthImagePoint