Forum

Author Topic: Number of points in points cloud  (Read 2155 times)

photoscan_user

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Number of points in points cloud
« on: July 04, 2018, 04:09:24 PM »
As I can see len(chunk.point_cloud.points) gives me 79429 points, but when I use right click on project -> show info it show me 79429 of 103995, so as I understand chunk.point_cloud.points is just valid points? How can I access all points?


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: Number of points in points cloud
« Reply #1 on: July 04, 2018, 07:06:47 PM »
Hello photoscan_user,

You can access the total number of tie points by using tracks concept:
Code: [Select]
total_points = len(chunk.point_cloud.tracks
The number in the Workspace for tie points represent the number of valid points from the chunk.point_cloud.points, so you can get this number by the following command:
Code: [Select]
valid_tie_points = len([p for p in chunk.point_cloud.points if p.valid])
Switching the valid flag to False to the point from the point_cloud is similar to removing the point from the sparse cloud in the Model view.
Best regards,
Alexey Pasumansky,
Agisoft LLC

photoscan_user

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Number of points in points cloud
« Reply #2 on: July 05, 2018, 04:38:34 PM »
Is it ok that

len([p for p in chunk.point_cloud.points if p.valid])

is the same as

len(chunk.point_cloud.points)

and both of them equal to 79429

?

As I said right click on project -> show info it show me 79429 of 103995

and

len(chunk.point_cloud.tracks)

103995

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: Number of points in points cloud
« Reply #3 on: July 05, 2018, 09:54:15 PM »
Hello photoscan_user,

Yes, it seems to be correct.

You can try to remove manually some points from the sparse cloud and get all three numbers without re-saving the project. The number of valid points will be less then number of points. Number of tracks would remain the same.
Best regards,
Alexey Pasumansky,
Agisoft LLC