Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Kinect for Windows 1.5, 1.6, 1.7, 1.8
Filters skeleton positions to reduce jitter between frames.
Syntax
HRESULT NuiTransformSmooth(
NUI_SKELETON_FRAME *pSkeletonFrame,
const NUI_TRANSFORM_SMOOTH_PARAMETERS *pSmoothingParams
)
Parameters
- pSkeletonFrame
Type: NUI_SKELETON_FRAME
[in, out] On entry, points to a NUI_SKELETON_FRAME Structure that contains the skeleton data to be smoothed. On exit, the skeleton data in the structure has been replaced by smoothed data. If this function does not return S_OK, this data is unchanged. - pSmoothingParams
Type: NUI_TRANSFORM_SMOOTH_PARAMETERS
[in, optional] The parameters for the smoothing function. See the NUI_TRANSFORM_SMOOTH_PARAMETERS structure for a description of the parameters.
Return Value
Type: HRESULT
Returns S_OK if successful; otherwise, returns one of the failure codes in the following table.
Error | Description |
---|---|
E_OUTOFMEMORY | The allocation failed. |
E_POINTER | The hNextFrameEvent parameter is an invalid handle. |
Remarks
The filter used is based on the Holt double-exponential smoothing method used for statistical analysis of economic data, which provides smoothing with less latency than other smoothing filter algorithms. A single call of this function updates all currently tracked skeletons.
Requirements
Header: Declared in NuiSkeleton.h; however, include NuiApi.h in your project.