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

◆ DepthImageToPointCloud() [1/2]

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

Creates a point cloud from a depth image.

Parameters
depthThe depth map to generate the point cloud from.
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 returned image will be of format Custom. Each pixel will be an XYZ set of 16 bit values, therefore its stride must is 2(bytes) * 3(x,y,z) * width of the depth image in pixels.

Returns
A point cloud image.