Forum

Author Topic: python change control point to check point  (Read 1574 times)

paulineschoen

  • Newbie
  • *
  • Posts: 2
    • View Profile
python change control point to check point
« on: April 27, 2020, 05:40:33 PM »
Hello,
I want to be able after an alignment to check if the mean total error is superior to a value and if so to reset the transform and make a new alignment without the markers whose total error is 2 times superior to the mean total error. By without the marker I mean that I want to change the marker from control point to check point.
I've found that I can do chunk.transform.matrix=None to reset transform. I have this topic to help me calculate the marker error : https://www.agisoft.com/forum/index.php?topic=4901.0
But I haven't found anything about changing a marker from control point to check point.

Does anyone know how to do it ?

Thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14890
    • View Profile
Re: python change control point to check point
« Reply #1 on: April 27, 2020, 09:32:17 PM »
Hello paulineschoen,

To switch between control and check point status for marker you should use marker.reference.enable which takes Boolean status. When it is set to True - the marker will be control point (corresponding marker will be checked on in the Reference pane) and if set to False - the marker will be unchecked in the Reference pane.
Best regards,
Alexey Pasumansky,
Agisoft LLC

paulineschoen

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: python change control point to check point
« Reply #2 on: April 28, 2020, 12:27:09 PM »
Thanks I'll try that and let you know.