How to convert depth frame from Structure Core to pointcloud format?


#1

Hello! How to convert depth frame to pointcloud format? I am specifically looking for pcl::PointXYZ. I have read the documentation and found function glProjectionMatrix of DepthFrame interesting. But I have no idea how to use it. Secondly I used saveImageAsPointCloudMesh method. But I don’t wanna use it as it will use a lot of io read write, because my application is basically getting all the streams, converting them to pointclouds and applying ICP to subsequent frames. Hence I don’t want to use saveImageAsPointCloudMesh method. Can you please guide me with some code snippet which can convert depth frame to pointcloud format?