![]() |
Azure Kinect Sensor SDK
refs/pull/1085/merge
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK
|
|
related |
Transform a 2D pixel coordinate from color camera into a 2D pixel coordinate of the depth camera.
| calibration | Location to read the camera calibration obtained by k4a_device_get_calibration(). |
| source_point2d | The 2D pixel in color camera coordinates. |
| depth_image | Handle to input depth image. |
| target_point2d | The 2D pixel in depth camera coordinates. |
| valid | The output parameter returns a value of 1 if the source_point2d is a valid coordinate in the target_camera coordinate system, and will return 0 if the coordinate is not valid in the calibration model. |
target_point2d was successfully written. K4A_RESULT_FAILED if calibration contained invalid transformation parameters. If the function returns K4A_RESULT_SUCCEEDED, but valid is 0, the transformation was computed, but the results in target_point2d are outside of the range of valid calibration and should be ignored.source_point2d does not map to a valid 2D coordinate in the target_camera coordinate system, valid is set to 0. If it is valid, valid will be set to 1. The user should not use the value of target_point2d if valid was set to 0.