Forum

Author Topic: Batch export undistort photos?  (Read 3809 times)

nils

  • Newbie
  • *
  • Posts: 5
    • View Profile
Batch export undistort photos?
« on: May 18, 2015, 01:14:55 PM »
Hi. It's unfortunate that the batch manager is lacking a 'Export undistort photos' feature. Has anyone successfully done it through the python api? I'm new to the api, if anyone has some example code for doing this it would be really appreciated.


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Batch export undistort photos?
« Reply #1 on: May 18, 2015, 01:54:21 PM »
Hello nils,

For the single camera it works as follows:
Code: [Select]
camera.photo.image().undistort(calibration, center_principal_point = True, square_pixels = True)
Best regards,
Alexey Pasumansky,
Agisoft LLC

nils

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Batch export undistort photos?
« Reply #2 on: May 18, 2015, 04:51:02 PM »
Thank you Alexey