C# Class HandInput.Util.PlayerDetector

A detector for player and player skin.
Afficher le fichier Open project: ushadow/handinput Class Usage Examples

Méthodes publiques

Свойство Type Description
DepthSkinMask Byte>.Image

Méthodes publiques

Méthode Description
FilterPlayer ( short depthFrame, byte colorPixelData ) : void

Updates the player mask and the depth image.

FilterPlayerContourSkin ( short depthFrame, byte colorFrame ) : void
PlayerDetector ( int width, int height, CoordinateConverter mapper, int bufferSize = 1 ) : System
SmoothSkin ( Rectangle roi ) : void
ToWorldDepth ( double depth ) : int
UpdateMasks ( short depthFrame, byte colorPixelData ) : void

Updates the player and skin masks without fitering out the player and the skin region.

UpdateMasks ( short depthFrame, byte colorPixelData, Rectangle roi, bool filterPlayer = false, bool filterSkin = false ) : void

Updates both skin mask and player mask.

UpdatePlayerDepthImage ( short depthFrame, Byte playerMask, Byte skinMask, Rectangle roi ) : void
UpdatePlayerDepthImage ( short depthFrame, Seq contour, Byte skinMask ) : void

Updates player depth image using the player contour.

UpdatePlayerMask ( short depthFrame ) : void

Updates depth player masks.

Private Methods

Méthode Description
FindBoundingBox ( ) : Rectangle
FindPlayerContour ( Byte>.Image mask ) : Seq
IsFilteredPixel ( Byte playerMask, Byte skinMask, int x, int y, int depth ) : bool
IsPlayerPixel ( Seq contour, Byte skinMask, int x, int y, int depth ) : bool

Method Details

FilterPlayer() public méthode

Updates the player mask and the depth image.
public FilterPlayer ( short depthFrame, byte colorPixelData ) : void
depthFrame short
colorPixelData byte
Résultat void

FilterPlayerContourSkin() public méthode

public FilterPlayerContourSkin ( short depthFrame, byte colorFrame ) : void
depthFrame short
colorFrame byte
Résultat void

PlayerDetector() public méthode

public PlayerDetector ( int width, int height, CoordinateConverter mapper, int bufferSize = 1 ) : System
width int
height int
mapper CoordinateConverter
bufferSize int
Résultat System

SmoothSkin() public méthode

public SmoothSkin ( Rectangle roi ) : void
roi System.Drawing.Rectangle
Résultat void

ToWorldDepth() public static méthode

public static ToWorldDepth ( double depth ) : int
depth double
Résultat int

UpdateMasks() public méthode

Updates the player and skin masks without fitering out the player and the skin region.
public UpdateMasks ( short depthFrame, byte colorPixelData ) : void
depthFrame short
colorPixelData byte
Résultat void

UpdateMasks() public méthode

Updates both skin mask and player mask.
public UpdateMasks ( short depthFrame, byte colorPixelData, Rectangle roi, bool filterPlayer = false, bool filterSkin = false ) : void
depthFrame short
colorPixelData byte
roi System.Drawing.Rectangle ROI in depth image.
filterPlayer bool
filterSkin bool
Résultat void

UpdatePlayerDepthImage() public méthode

public UpdatePlayerDepthImage ( short depthFrame, Byte playerMask, Byte skinMask, Rectangle roi ) : void
depthFrame short
playerMask Byte
skinMask Byte
roi System.Drawing.Rectangle
Résultat void

UpdatePlayerDepthImage() public méthode

Updates player depth image using the player contour.
public UpdatePlayerDepthImage ( short depthFrame, Seq contour, Byte skinMask ) : void
depthFrame short
contour Seq
skinMask Byte
Résultat void

UpdatePlayerMask() public méthode

Updates depth player masks.
public UpdatePlayerMask ( short depthFrame ) : void
depthFrame short
Résultat void

Property Details

DepthSkinMask public_oe property

public Image DepthSkinMask
Résultat Byte>.Image