ICoordinateMapper::MapColorFrameToDepthSpace Method

Uses the depth frame data to map the entire frame from color space to depth space.

Syntax

public:
HRESULT MapColorFrameToDepthSpace(
         UINT depthDataPointCount,
         const UINT16 *depthFrameData,
         UINT depthPointCount,
         DepthSpacePoint *depthSpacePoints
)

Parameters

  • depthDataPointCount
    Type: UINT
    The number of depth data points.
  • depthFrameData
    Type: UINT16
    [in] The full image data from a depth frame.
  • depthPointCount
    Type: UINT
    The number of depth points.
  • depthSpacePoints
    Type: DepthSpacePoint
    [out] The array of mapped depth points 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