![]() |
Azure Kinect Sensor SDK
refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK
|
|
related |
Transforms depth map and a custom image into the geometry of the color camera.
| transformation_handle | Transformation handle. |
| depth_image | Handle to input depth image. |
| custom_image | Handle to input custom image. |
| transformed_depth_image | Handle to output transformed depth image. |
| transformed_custom_image | Handle to output transformed custom image. |
| interpolation_type | Parameter that controls how pixels in custom_image should be interpolated when transformed to color camera space. K4A_TRANSFORMATION_INTERPOLATION_TYPE_LINEAR if linear interpolation should be used. K4A_TRANSFORMATION_INTERPOLATION_TYPE_NEAREST if nearest neighbor interpolation should be used. |
| invalid_custom_value | Defines the custom image pixel value that should be written to transformed_custom_image in case the corresponding depth pixel can not be transformed into the color camera space. |
depth_image and transformed_depth_image must be of format K4A_IMAGE_FORMAT_DEPTH16.custom_image and transformed_custom_image must be of format K4A_IMAGE_FORMAT_CUSTOM8 or K4A_IMAGE_FORMAT_CUSTOM16.transformed_depth_image and transformed_custom_image must have a width and height matching the width and height of the color camera in the mode specified by the k4a_calibration_t used to create the transformation_handle with k4a_transformation_create().custom_image must have a width and height matching the width and height of depth_image.transformed_depth_image will be filled with the depth values derived from depth_image in the color camera's coordinate space.transformed_custom_image will be filled with the values derived from custom_image in the color camera's coordinate space.transformed_depth_image and transformed_custom_image should be created by the caller using k4a_image_create() or k4a_image_create_from_buffer().transformed_custom_image which do no exist in custom_image. Setting use_linear_interpolation to false will prevent this from happenning but will result in less smooth image.transformed_depth_image and transformed_custom_image were successfully written and K4A_RESULT_FAILED otherwise.