C# Class HandInput.Util.CoordinateConverter

Maps points between color, depth and skeleton coordinates.
Afficher le fichier Open project: ushadow/handinput Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Clip ( int v, int min, int max ) : int

Method Details

CoordinateConverter() public méthode

public CoordinateConverter ( CoordinateMapper mapper, ColorImageFormat cif, DepthImageFormat dif ) : System
mapper CoordinateMapper
cif ColorImageFormat
dif DepthImageFormat
Résultat System

CoordinateConverter() public méthode

public CoordinateConverter ( IEnumerable kinectParams, ColorImageFormat cif, DepthImageFormat dif ) : System
kinectParams IEnumerable
cif ColorImageFormat
dif DepthImageFormat
Résultat System

MapDepthPointToColorPoint() public méthode

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).
Résultat ColorImagePoint

MapDepthPointToSkeletonPoint() public méthode

public MapDepthPointToSkeletonPoint ( DepthImagePoint depthImagePoint ) : Microsoft.Kinect.SkeletonPoint
depthImagePoint DepthImagePoint
Résultat Microsoft.Kinect.SkeletonPoint

MapDepthPointToSkeletonPoint() public méthode

public MapDepthPointToSkeletonPoint ( int x, int y, int depth ) : Microsoft.Kinect.SkeletonPoint
x int
y int
depth int
Résultat Microsoft.Kinect.SkeletonPoint

MapDepthRectToColorRect() public méthode

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
Résultat System.Drawing.Rectangle

MapSkeletonPointToColorPoint() public méthode

public MapSkeletonPointToColorPoint ( Microsoft.Kinect.SkeletonPoint sp ) : ColorImagePoint
sp Microsoft.Kinect.SkeletonPoint
Résultat ColorImagePoint

MapSkeletonPointToDepthPoint() public méthode

public MapSkeletonPointToDepthPoint ( Microsoft.Kinect.SkeletonPoint sp ) : DepthImagePoint
sp Microsoft.Kinect.SkeletonPoint
Résultat DepthImagePoint