ICoordinateMapper::MapDepthPointsToCameraSpace Method

Maps an array of points and depths from depth space to camera space.

Syntax

public:
HRESULT MapDepthPointsToCameraSpace(
         UINT depthPointCount,
         const DepthSpacePoint *depthPoints,
         UINT depthCount,
         const UINT16 *depths,
         UINT cameraPointCount,
         CameraSpacePoint *cameraPoints
)

Parameters

  • depthPointCount
    Type: UINT
    The number of depth points.
  • depthPoints
    Type: DepthSpacePoint
    [in] The points to map from depth space.
  • depthCount
    Type: UINT
    The number of depths.
  • depths
    Type: UINT16
    [in] The depths of the points in depth space.
  • cameraPointCount
    Type: UINT
    The number of camera points.
  • cameraPoints
    Type: CameraSpacePoint
    [out] The points mapped to camera space that will be filled.

Return value

Type: HRESULT
Returns S_OK if successful; otherwise, returns a failure code.

Requirements

Header: kinect.h

Library: kinect20.lib