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

**URL:** <https://community.stereolabs.com/t/is-there-a-way-of-accessing-the-mat-data-without-using-getvalue-for-pointclouds/1479>\
**Category:** C++\
**Created:** [August 12, 2022, 4:53pm UTC](https://community.stereolabs.com/t/is-there-a-way-of-accessing-the-mat-data-without-using-getvalue-for-pointclouds/1479 "2022-08-12T16:53:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TastesLikeHarry](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/t/ed8c4c/32.png) [@TastesLikeHarry](https://community.stereolabs.com/u/TastesLikeHarry)\
**Post date:** [August 12, 2022, 4:53pm UTC](https://community.stereolabs.com/t/is-there-a-way-of-accessing-the-mat-data-without-using-getvalue-for-pointclouds/1479/1 "2022-08-12T16:53:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![foxy](https://community.stereolabs.com/user_avatar/community.stereolabs.com/foxy/32/1054_2.png) [@foxy](https://community.stereolabs.com/u/foxy)\
**Post date:** [February 27, 2023, 8:10pm UTC](https://community.stereolabs.com/t/is-there-a-way-of-accessing-the-mat-data-without-using-getvalue-for-pointclouds/1479/2 "2023-02-27T20:10:09Z")

</div>

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
