Forum

Author Topic: Masked point cloud with masks on certain photos only  (Read 1791 times)

aloeb

  • Newbie
  • *
  • Posts: 3
    • View Profile
Masked point cloud with masks on certain photos only
« on: May 27, 2024, 05:45:41 PM »
Hello,
Using the python API, I'm trying to build a point cloud using masks.

I have 10 photos but only a mask on 2 of them (too hard to make a mask automatically on the others). I import the 2 masks with chunk.generateMasks.
The mask works perfectly on the point cloud if I only use the 2 photos and their mask, but not when I add the other photos.

Is there a way to display on the point cloud only the points that are not masked on photos 1 and 2?

Thanks in advance for your help

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15067
    • View Profile
Re: Masked point cloud with masks on certain photos only
« Reply #1 on: June 07, 2024, 01:22:19 PM »
Hello aloeb,

Here is an example on how to select dense cloud points masked on the first camera in the chunk:
Code: [Select]
chunk.point_cloud.selectMaskedPoints([chunk.cameras[0]])Then you can delete or crop the selected points.
Best regards,
Alexey Pasumansky,
Agisoft LLC

aloeb

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Masked point cloud with masks on certain photos only
« Reply #2 on: June 10, 2024, 10:23:10 AM »
Thanks Alexey!