I have been reading StereoLabs example for transferring Mat stored point clouds to PCL pointclouds, and in that you use mutex and threads to access the Mat and cycle through it iterating the index of the pointer to the matrix each cycle for the 4 new pieces of data.
I have tried to emulate this example, but I continue to get segmentation faults each time, even if its as simple as GetPtr → Cout << Pointer_values.
All I want to do is access the pointcloud data stored on the GPU with pointers without causing a core dump instead of using GetValue to pull them out within a loop.
Yes, it’s something similar… but if you are not using the point cloud with CUDA it’s not useful to perform this operation. You can retrieve the data directly into CPU memory letting the SDK perform the copy internally.