Closed UnaNancyOwen closed 3 years ago
@JonathanESantos What do you think? Do you have any advice?
There is a bug in the transformation function depth_image_to_point_cloud() where a ctypes.c_uint16 is used. It should be ctypes.c_int16. The X and Y coordinates are centered around 0 and have negative numbers.
The docstring is also a bit misleading where it says each pixel is a set of (x, y, z) values, which sounds like interleaving. In fact, the output images are arranged in planes, where the first plane is X, the next plane is Y, and the last plane is Z.
The PR to fix this is 1568. The example code to output the point cloud in a text file has also been added for reference.
Describe the bug
Python API doesn't transform correctly to point cloud from depth image. The API returns a result, but it does not seem to be the correct point cloud.
To Reproduce
run this simple script for save point cloud to file
Expected behavior
It can get correctly transformed point cloud data.
Logs
Screenshots
Desktop (please complete the following information):
Additional context
The other features of Python API are working correctly.