Hello everyone, first of all thanks for the amazing work.
I'm looking at Protonect.cpp source code and i see that after registration->apply(rgb, depth, &undistorted, ®istered); (line 203) I should have a color-depth registered image in registered Frame. In fact that same frame gets sent to the viewer for the user to see.
Now what i want to do is convert that frame into a PointCloud class (from pcl library), as far as i know it should contain all the necessary information to construct a point cloud: it has width, height and data.
My question is, how can I access the data pointer to extract euclidean coordinates (x,y,z) and the color associated with each point ?
Are there already some helper functions doing this that i'm missing ?