C# Класс 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.
Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
OriginalImage float[]
depthImgNormalizedBlurred float[]
depthImgNormalizedSmoothed float[]
devOrEmu DeviceOrEmulator,
rollingVarianceNormalized float[]
rollingVarianceNormalizedLastFrame float[]
storedFrames int

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

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

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

Метод Описание
processDepth ( ) : void

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

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

public LateUpdate ( ) : void
Результат void

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

public Start ( ) : void
Результат void

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

public Update ( ) : void
Результат void

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

public calcVariance ( float oldData, int index ) : float
oldData float
index int
Результат float

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

public calcVariance ( float oldData ) : float[]
oldData float
Результат float[]

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

public getBlurred ( float normalDepth, float outputSmoothedDepth ) : void
normalDepth float
outputSmoothedDepth float
Результат void

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

public lerp ( float oldValue, float newValue, float factor ) : float
oldValue float
newValue float
factor float
Результат float

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

public lerpArray ( float oldValue, float newValue, float factor ) : float[]
oldValue float
newValue float
factor float
Результат float[]

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

public normalize ( float target ) : float[]
target float
Результат float[]

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

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

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

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

public float[] OriginalImage
Результат float[]

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

public float[] depthImgNormalizedBlurred
Результат float[]

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

public float[] depthImgNormalizedSmoothed
Результат float[]

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

public DeviceOrEmulator, devOrEmu
Результат DeviceOrEmulator,

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

public float[] rollingVarianceNormalized
Результат float[]

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

public float[] rollingVarianceNormalizedLastFrame
Результат float[]

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

public int storedFrames
Результат int