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

◆ k4a_capture_set_depth_image()

void k4a_capture_set_depth_image ( k4a_capture_t  capture_handle,
k4a_image_t  image_handle 
)
related

Set or add a depth image to the associated capture.

Parameters
capture_handleCapture handle to hold the image.
image_handleImage handle containing the image.
Remarks
When a k4a_image_t is added to a k4a_capture_t, the k4a_capture_t will automatically add a reference to the k4a_image_t.
If there is already an image depth image contained in the capture, the existing image will be dereferenced and replaced with the new image.
To remove a depth image to the capture without adding a new image, this function can be called with a NULL image_handle.
Any k4a_image_t contained in this k4a_capture_t will automatically be dereferenced when all references to the k4a_capture_t are released with k4a_capture_release().