ICoordinateMapper::MapColorFrameToCameraSpace Method

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

Syntax

public:
HRESULT MapColorFrameToCameraSpace(
         UINT depthDataPointCount,
         const UINT16 *depthFrameData,
         UINT cameraPointCount,
         CameraSpacePoint *cameraSpacePoints
)

Parameters

  • depthDataPointCount
    Type: UINT
    The number of depth data points.
  • depthFrameData
    Type: UINT16
    [in] The full image data from a depth frame.
  • cameraPointCount
    Type: UINT
    The number of camera points.
  • cameraSpacePoints
    Type: CameraSpacePoint
    [out] The array of mapped camera points that will be filled.

Return value

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

Remarks

The cameraPoints array should be the same size of the number of color frame pixels.

Requirements

Header: kinect.h

Library: kinect20.lib