C# Класс Kinect.JointPositionsFilter

Implementation of a Holt Double Exponential Smoothing filter. The double exponential smooths the curve and predicts. There is also noise jitter removal. And maximum prediction bounds. The parameters are commented in the Init function.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Init ( ) : void
Init ( KinectInterop smoothParameters ) : void
Init ( float smoothingValue, float correctionValue, float predictionValue, float jitterRadiusValue, float maxDeviationRadiusValue ) : void

Initialize the filter with a set of manually specified TransformSmoothParameters.

JointPositionsFilter ( ) : System
Reset ( ) : void
UpdateFilter ( KinectInterop &bodyFrame ) : void

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

Метод Описание
FilterBodyJoints ( KinectInterop &bodyData, int bodyIndex, KinectInterop &tempSmoothingParams ) : void
FilterJoint ( Vector3 rawPosition, int bodyIndex, int jointIndex, KinectInterop &smoothingParameters ) : Vector3

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

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

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

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

public Init ( KinectInterop smoothParameters ) : void
smoothParameters KinectInterop
Результат void

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

Initialize the filter with a set of manually specified TransformSmoothParameters.
public Init ( float smoothingValue, float correctionValue, float predictionValue, float jitterRadiusValue, float maxDeviationRadiusValue ) : void
smoothingValue float Smoothing = [0..1], lower values is closer to the raw data and more noisy.
correctionValue float Correction = [0..1], higher values correct faster and feel more responsive.
predictionValue float Prediction = [0..n], how many frames into the future we want to predict.
jitterRadiusValue float JitterRadius = The deviation distance in m that defines jitter.
maxDeviationRadiusValue float MaxDeviation = The maximum distance in m that filtered positions are allowed to deviate from raw data.
Результат void

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

public JointPositionsFilter ( ) : System
Результат System

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

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

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

public UpdateFilter ( KinectInterop &bodyFrame ) : void
bodyFrame KinectInterop
Результат void