reprojectImageTo3D output to point cloud

asked 2020-04-01 10:45:28 -0600

pacifica gravatar image

updated 2022-05-23 09:55:27 -0600

lucasw gravatar image

Hi to all,

I have a stereo camera and my goal is to obtain the 3d Point cloud fusing the two images. I have successfully created the depth image and the disparity map. Then, I used the reprojectImageTo3D function from Opencv to get the 3d points from the disparity map. I am a bit confused about how to convert such points in a Point Cloud, that I want to stream over ROS network.

I am using python and Opencv. Seems that the result of reprojectImageTo3D function is a numpy array. I have seen some example in which this data is saved into an output file, but I have not found any automatic conversion into PCL. Do you have any suggestion?


edit retag flag offensive close merge delete