Forum

Author Topic: Deleting keypoints with python  (Read 1485 times)

picare

  • Newbie
  • *
  • Posts: 32
    • View Profile
Deleting keypoints with python
« on: September 23, 2021, 06:53:15 PM »
Hi,
Is it possible to delete all the keypoints of a chunk or of an image with a python command? (not the tie points)
I'm not able to find the keypoints in the python properties of chunk or images

In the Metashape interface, that's possible with a right click on the tiepoints > Remove Keypoints.

Thanks,
Pierre

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Re: Deleting keypoints with python
« Reply #1 on: September 27, 2021, 04:27:58 PM »
Hello Pierre,

I think you should use the following command to delete the keypoint data from the chunk:
Code: [Select]
chunk.point_cloud.removeKeypoints()
Note that currently it is only possible to remove all the keypoints at once (i.e. not possible to delete the keypoints for certain images only).
Best regards,
Alexey Pasumansky,
Agisoft LLC

picare

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Deleting keypoints with python
« Reply #2 on: September 28, 2021, 09:58:05 AM »
Thanks, that's what i was searching for!  :)