Forum

Author Topic: Change Reference Settings - rotation angels from YPR to OPK  (Read 261 times)

MHFR

  • Newbie
  • *
  • Posts: 2
    • View Profile
Change Reference Settings - rotation angels from YPR to OPK
« on: November 08, 2018, 05:40:56 PM »
Hi - I'm looking for a snip of python code equivalent to changing Reference Settings > Rotation angels from YPR to OPK

I'm able to control "location_accuracy" and "rotation_accuracy" by the following code:
Code: [Select]
chunk.camera_location_accuracy = (0.03, 0.03, 0.05)
chunk.camera_rotation_accuracy = (1, 1, 1)

..but can't figure out how to define the rotation angels as OPK... what am I missing?

Alternatively... is it possible to specify OPK when importing image positions by?:
Code: [Select]
chunk.loadReference(orientations, PhotoScan.ReferenceFormatCSV, columns= 'nxyzXYZabc', delimiter=',', skip_rows=1)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 10167
    • View Profile
Re: Change Reference Settings - rotation angels from YPR to OPK
« Reply #1 on: November 08, 2018, 06:02:42 PM »
Hello MHFR,

After importing the information from the file you can switch to OPK convention for the chunk:
Code: [Select]
chunk.euler_angles = PhotoScan.EulerAnglesOPK
Best regards,
Alexey Pasumansky,
AgiSoft LLC

MHFR

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Change Reference Settings - rotation angels from YPR to OPK
« Reply #2 on: November 09, 2018, 09:53:36 AM »
Fantastic - thanks for the quick reply