Azure-Kinect-Sensor-SDK icon indicating copy to clipboard operation
Azure-Kinect-Sensor-SDK copied to clipboard

Color camera image to point cloud

Open rfilkov opened this issue 7 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Currently, I can't find a way to convert the color camera image to point cloud. k4a_transformation_depth_image_to_color_camera() returns an image of distances, but the XY positions in the depth image are missing. Please suggest a solution.

Describe the solution you'd like

A function similar to MapColorFrameToDepthSpace() in Kinect SDK 2.0 would solve this and similar issues quite elegantly. See again #502

Describe alternatives you've considered

Additional context

rfilkov avatar Jul 25 '19 13:07 rfilkov

@rfilkov please look at k4a_transformation_depth_image_to_point_cloud. You can pass it the result of k4a_transformation_depth_image_to_color_camera to get an xyz image out.

cdedmonds avatar Jul 25 '19 17:07 cdedmonds

The transformation example (https://github.com/microsoft/Azure-Kinect-Sensor-SDK/tree/develop/examples/transformation) is doing exactly what you want.

mbleyer avatar Jul 25 '19 18:07 mbleyer

@cdedmonds thank you! @mbleyer thank you, too! I must have been blind.

rfilkov avatar Jul 25 '19 19:07 rfilkov