Share via


CoordinateMapper.MapColorFrameToDepthSpace Method

Maps a frame from color space to depth space.

Syntax

public:
void MapColorFrameToDepthSpace(
         Array<uint16>^ depthFrameData,
         out Array<DepthSpacePoint>^ depthSpacePoints
)
public void MapColorFrameToDepthSpace (
         Array<UInt16>[] depthFrameData,
         out Array<DepthSpacePoint>[] depthSpacePoints
)
coordinateMapper.mapColorFrameToDepthSpace(depthFrameData, );

Parameters

  • depthFrameData

    [C++] 
    [C#] 
    [JavaScript] 

    Type: uint16
    Type: UInt16
    Type: Number

     

    The depth frame data.

  • depthSpacePoints
    Type: DepthSpacePoint
    The mapped array of points in depth space.

Remarks

Allocate the depthSpacePoints array before calling this method. It should have the same number of elements as the color frame has pixels (1920px by 1080px). Each entry in the filled depthSpacePoints array contains the depth point to which the corresponding pixel belongs.

Requirements

Namespace: WindowsPreview.Kinect

Metadata: windowspreview.kinect.winmd

See also

Reference

CoordinateMapper Class
WindowsPreview.Kinect Namespace