KinectSensor.MapDepthFrameToColorFrame Method

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Obsolete starting with version 1.6; replaced by the CoordinateMapper.MapDepthFrameToColorFrame method. In versions prior to 1.6, this method maps a depth frame to a color frame.

public void MapDepthFrameToColorFrame (
         DepthImageFormat depthImageFormat,
         short[] depthPixelData,
         ColorImageFormat colorImageFormat,
         ColorImagePoint[] colorCoordinates


Type: DepthImageFormat
The depth format of the source.
Type: Int16
The depth frame pixel data, as retrieved from the CopyPixelDataTo method. Must be equal in length to Width*Height of the depth format specified by depthImageFormat.
Type: ColorImageFormat
The desired target image format.
Type: ColorImagePoint
The ColorImagePoint array to receive the data. Each element will be the result of mapping the corresponding depthPixelData element to the specified ColorImageFormat coordinate space. Must be equal in length to depthPixelData.

There is a known issue with calling this method when the sensor is stopped or disconnected.

Namespace: Microsoft.Kinect
Assembly: Microsoft.Kinect (in microsoft.kinect.dll)

Community Additions