NuiTransformDepthImageToSkeleton(LONG, LONG, USHORT, NUI_IMAGE_RESOLUTION)
Kinect for Windows 1.5, 1.6, 1.7, 1.8
Converts a point in depth space using depth and resolution to skeleton space (in meters).
Syntax
Vector4 NuiTransformDepthImageToSkeleton(
LONG lDepthX,
LONG lDepthY,
USHORT usDepthValue,
NUI_IMAGE_RESOLUTION eResolution
)
Parameters
- lDepthX
Type: LONG
[in] The x-coordinate of the depth pixel. - lDepthY
Type: LONG
[in] The y-coordinate of the depth pixel. - usDepthValue
Type: USHORT
[in] The depth value (in millimeters) of the depth image pixel, shifted left by three bits. The left shift enables you to pass the value from the depth image directly into this function. - eResolution
Type: NUI_IMAGE_RESOLUTION
[in] A NUI_IMAGE_RESOLUTION value that specifies the resolution of the depth image.
Return Value
Type: Vector4
Returns the skeleton space coordinates (in meters) of the given depth image pixel.
Requirements
Header: Declared in NuiSkeleton.h; however, include NuiApi.h in your project.