[−][src]Function k4a_sys_temp::k4a_capture_set_color_image
pub unsafe extern "C" fn k4a_capture_set_color_image(
capture_handle: k4a_capture_t,
image_handle: k4a_image_t
)
Set or add a color image to the associated capture.
\param capture_handle Capture handle to hold the image.
\param image_handle Image handle containing the image.
\relates k4a_capture_t
\remarks When a \ref k4a_image_t is added to a \ref k4a_capture_t, the \ref k4a_capture_t will automatically add a reference to the \ref k4a_image_t.
\remarks If there is already a color image contained in the capture, the existing image will be dereferenced and replaced with the new image.
\remarks To remove a color image to the capture without adding a new image, this function can be called with a NULL image_handle.
\remarks Any \ref k4a_image_t contained in this \ref k4a_capture_t will automatically be dereferenced when all references to the \ref k4a_capture_t are released with k4a_capture_release().
\xmlonly