Forum

Author Topic: Load dense point cloud as numpy array  (Read 2378 times)

user

  • Newbie
  • *
  • Posts: 9
    • View Profile
Load dense point cloud as numpy array
« on: December 11, 2017, 05:44:30 PM »
I've created a dense point cloud.

Now i need to store it as [ x,y,z,r,g,b ] column oriented numpy array.

Do do I achieve it?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Load dense point cloud as numpy array
« Reply #1 on: December 15, 2017, 08:36:29 PM »
Hello user,

Currently it is not possible to import the dense cloud from numpy array.

As a workaround in the version 1.4.0 (pre-release) you can save the array as .PTS file and import it using chunk.importPoints() function.
Best regards,
Alexey Pasumansky,
Agisoft LLC

user

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Load dense point cloud as numpy array
« Reply #2 on: December 19, 2017, 02:19:46 PM »
Thanks Alexey ;D, it would be nice to have this feature though. I've already implemented it this way. Even on SSD drives this method is quite slow in case the point cloud is big :-\

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Load dense point cloud as numpy array
« Reply #3 on: December 19, 2017, 03:58:48 PM »
Hello user,

We'll see, if any additional functionality could be implemented to API to ease the access to the dense cloud points.
Best regards,
Alexey Pasumansky,
Agisoft LLC