ICoordinateMapper::MapDepthPointsToColorSpace Method

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

Syntax

public:
HRESULT MapDepthPointsToColorSpace(
         UINT depthPointCount,
         const DepthSpacePoint *depthPoints,
         UINT depthCount,
         const UINT16 *depths,
         UINT colorPointCount,
         ColorSpacePoint *colorPoints
)

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.
  • colorPointCount
    Type: UINT
    The number of color points.
  • colorPoints
    Type: ColorSpacePoint
    [out] The points mapped to color space to be filled.

Return value

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

Requirements

Header: kinect.h

Library: kinect20.lib