C# Класс HandInput.Util.PlayerDetector

A detector for player and player skin.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DepthSkinMask Byte>.Image

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

FilterPlayer() публичный Метод

Updates the player mask and the depth image.
public FilterPlayer ( short depthFrame, byte colorPixelData ) : void
depthFrame short
colorPixelData byte
Результат void

FilterPlayerContourSkin() публичный Метод

public FilterPlayerContourSkin ( short depthFrame, byte colorFrame ) : void
depthFrame short
colorFrame byte
Результат void

PlayerDetector() публичный Метод

public PlayerDetector ( int width, int height, CoordinateConverter mapper, int bufferSize = 1 ) : System
width int
height int
mapper CoordinateConverter
bufferSize int
Результат System

SmoothSkin() публичный Метод

public SmoothSkin ( Rectangle roi ) : void
roi System.Drawing.Rectangle
Результат void

ToWorldDepth() публичный статический Метод

public static ToWorldDepth ( double depth ) : int
depth double
Результат int

UpdateMasks() публичный Метод

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
Результат void

UpdateMasks() публичный Метод

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
Результат void

UpdatePlayerDepthImage() публичный Метод

public UpdatePlayerDepthImage ( short depthFrame, Byte playerMask, Byte skinMask, Rectangle roi ) : void
depthFrame short
playerMask Byte
skinMask Byte
roi System.Drawing.Rectangle
Результат void

UpdatePlayerDepthImage() публичный Метод

Updates player depth image using the player contour.
public UpdatePlayerDepthImage ( short depthFrame, Seq contour, Byte skinMask ) : void
depthFrame short
contour Seq
skinMask Byte
Результат void

UpdatePlayerMask() публичный Метод

Updates depth player masks.
public UpdatePlayerMask ( short depthFrame ) : void
depthFrame short
Результат void

Описание свойств

DepthSkinMask публичное свойство

public Image DepthSkinMask
Результат Byte>.Image