Is there a way of accessing the Mat data without using getValue for pointclouds?

Hello,

I was hoping I’d be able to access the Mat data in some for that doesn’t require a two stage for loop to cycle through all the points in the pointcloud and all the performance loss that creates.

If anyone has any pointers to solutions around this that’d be great, or just documentation on manipulating Mat’s to let you do the same maths on all the stored points at the same time.

I’m trying to figure out a way of converting the entire point cloud from Cartesian space to polar coordinates.

Thank you for your time,

Harry

Hey Harry,

I’m working through the same issue. I was seeing getData or get_data in the place of getValue used in old GitHub issues, but I’m not seeing it referenced in the ZED 2 documentation anywhere so I’m not sure if it is still the suggested way to get all the point cloud data. I’m also unsure of the type get_data returns, so I’m unsure how to use the data.

Have you been able to resolve this question?

  • Michael