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

◆ k4a_calibration_get_from_raw()

k4a_result_t k4a_calibration_get_from_raw ( char *  raw_calibration,
size_t  raw_calibration_size,
const k4a_depth_mode_t  depth_mode,
const k4a_color_resolution_t  color_resolution,
k4a_calibration_t calibration 
)
related

Get the camera calibration for a device from a raw calibration blob.

Parameters
raw_calibrationRaw calibration blob obtained from a device or recording. The raw calibration must be NULL terminated.
raw_calibration_sizeThe size, in bytes, of raw_calibration including the NULL termination.
depth_modeMode in which depth camera is operated.
color_resolutionResolution in which color camera is operated.
calibrationLocation to write the calibration.
Returns
K4A_RESULT_SUCCEEDED if calibration was successfully written. K4A_RESULT_FAILED otherwise.
Remarks
The calibration represents the data needed to transform between the camera views and is different for each operating depth_mode and color_resolution the device is configured to operate in.
The calibration output is used as input to all transformation functions.
See also
k4a_calibration_2d_to_2d()
k4a_calibration_2d_to_3d()
k4a_calibration_3d_to_2d()
k4a_calibration_3d_to_3d()