Forum

Author Topic: Number of points in the dense_cloud object  (Read 4213 times)

marg

  • Newbie
  • *
  • Posts: 18
    • View Profile
Number of points in the dense_cloud object
« on: September 11, 2015, 10:35:56 AM »
Hi,
I'm trying to write a python script to generate point clouds out of images of plants. I want to log some metadata, and have the following two problems:
1: Is there a convenient way to get the number of points in the dense cloud, similar to how it works in the point_cloud member (len(chunk.point_cloud.points))
2: In the string representation of dense_cloud, a number of points is given like this (<DenseCloud '697114 points'>)
But this number does not match the number given in the TOC (427608 in this example), nor does it match the number of points exported via chunk.exportPoints() (427593 in this example). Why is that?

Thanks in advance

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Number of points in the dense_cloud object
« Reply #1 on: September 11, 2015, 11:15:09 AM »
Hello marg,

In the version 1.2 there will be point_count attribute for chunk.dense_cloud. At the moment you can parse chunk.dense_cloud output for the points number.

Also the issue with the incorrect number displayed in the Workspace pane will be fixed.
Best regards,
Alexey Pasumansky,
Agisoft LLC

marg

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Number of points in the dense_cloud object
« Reply #2 on: September 11, 2015, 12:22:13 PM »
Thanks for the reply. Quick follow up:
I also thought about parsing that string, but since the number of points in the exported cloud (tested with cloudcompare) matches the number in the workspace pane rather than the number in the dense_cloud string I thought THAT would be the wrong number?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Number of points in the dense_cloud object
« Reply #3 on: September 11, 2015, 12:30:55 PM »
Hello marg,

We suggest to check version 1.2 output and see if the values are correct both in Workspace and Console pane, since if there are any problems we'll be fixing version 1.2 already.
Best regards,
Alexey Pasumansky,
Agisoft LLC

marg

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Number of points in the dense_cloud object
« Reply #4 on: September 11, 2015, 01:00:40 PM »
Ok, will do, thanks a lot!