Azure Kinect Sensor SDK  refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK

◆ DepthImageToPointCloud() [2/2]

void Microsoft.Azure.Kinect.Sensor.Transformation.DepthImageToPointCloud ( Image  depth,
Image  pointCloud,
CalibrationDeviceType  camera = CalibrationDeviceType.Depth 
)
inline

Creates a point cloud from a depth image.

Parameters
depthThe depth map to generate the point cloud from.
pointCloudThe image to store the output point cloud.
cameraThe perspective the depth map is from.

If the depth map is from the original depth perspective, camera should be Depth. If it has been transformed to the color camera perspective, camera should be Color.

The pointCloud image must be of format Custom. Each pixel will be an XYZ set of 16 bit values, therefore its stride must be 2(bytes) * 3(x,y,z) * width of the depth image in pixels.