C# Class DepthWrapper, casanova-mk2

Level of indirection for the depth image, provides: -a frames of depth image (no player information), -an array representing which players are detected, -a segmentation image for each player, -bounds for the segmentation of each player.
Inheritance: MonoBehaviour
Afficher le fichier Open project: vs-team/casanova-mk2 Class Usage Examples

Méthodes publiques

Свойство Type Description
OriginalImage float[]
depthImgNormalizedBlurred float[]
depthImgNormalizedSmoothed float[]
devOrEmu DeviceOrEmulator,
rollingVarianceNormalized float[]
rollingVarianceNormalizedLastFrame float[]
storedFrames int

Méthodes publiques

Méthode Description
LateUpdate ( ) : void
Start ( ) : void
Update ( ) : void
calcVariance ( float oldData, int index ) : float
calcVariance ( float oldData ) : float[]
getBlurred ( float normalDepth, float outputSmoothedDepth ) : void
lerp ( float oldValue, float newValue, float factor ) : float
lerpArray ( float oldValue, float newValue, float factor ) : float[]
normalize ( float target ) : float[]
pollDepth ( ) : bool

First call per frame checks if there is a new depth image and updates, returns true if there is new data Subsequent calls do nothing have the same return as the first call.

Private Methods

Méthode Description
processDepth ( ) : void

Method Details

LateUpdate() public méthode

public LateUpdate ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

calcVariance() public méthode

public calcVariance ( float oldData, int index ) : float
oldData float
index int
Résultat float

calcVariance() public méthode

public calcVariance ( float oldData ) : float[]
oldData float
Résultat float[]

getBlurred() public méthode

public getBlurred ( float normalDepth, float outputSmoothedDepth ) : void
normalDepth float
outputSmoothedDepth float
Résultat void

lerp() public méthode

public lerp ( float oldValue, float newValue, float factor ) : float
oldValue float
newValue float
factor float
Résultat float

lerpArray() public méthode

public lerpArray ( float oldValue, float newValue, float factor ) : float[]
oldValue float
newValue float
factor float
Résultat float[]

normalize() public méthode

public normalize ( float target ) : float[]
target float
Résultat float[]

pollDepth() public méthode

First call per frame checks if there is a new depth image and updates, returns true if there is new data Subsequent calls do nothing have the same return as the first call.
public pollDepth ( ) : bool
Résultat bool

Property Details

OriginalImage public_oe property

public float[] OriginalImage
Résultat float[]

depthImgNormalizedBlurred public_oe property

public float[] depthImgNormalizedBlurred
Résultat float[]

depthImgNormalizedSmoothed public_oe property

public float[] depthImgNormalizedSmoothed
Résultat float[]

devOrEmu public_oe property

public DeviceOrEmulator, devOrEmu
Résultat DeviceOrEmulator,

rollingVarianceNormalized public_oe property

public float[] rollingVarianceNormalized
Résultat float[]

rollingVarianceNormalizedLastFrame public_oe property

public float[] rollingVarianceNormalizedLastFrame
Résultat float[]

storedFrames public_oe property

public int storedFrames
Résultat int