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
파일 보기 프로젝트 열기: vs-team/casanova-mk2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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