Forum

Author Topic: How do you specify orthophoto width?  (Read 7666 times)

nickponline

  • Newbie
  • *
  • Posts: 38
    • View Profile
How do you specify orthophoto width?
« on: January 28, 2014, 10:47:18 PM »
How do you specify orthophoto size generated from exportOrthophoto(). I can only see how to specify resolution (dx, dy) and block size (blockw, blockh) in the API. How you you specify the final image size in pixels?

BarryReid

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How do you specify orthophoto width?
« Reply #1 on: October 13, 2015, 10:06:40 AM »
I would also like to know how to do this

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15403
    • View Profile
Re: How do you specify orthophoto width?
« Reply #2 on: October 13, 2015, 08:00:32 PM »
Unfortunately, max dimension parameter is not implemented in Python API, so it is necessary to calculate the dx, dy arguments for the .exportOrthophoto() operation according to the desired dimensions of the output image and the surface covered (max distance between mesh vertices along X and Y axis).
Best regards,
Alexey Pasumansky,
Agisoft LLC

BarryReid

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How do you specify orthophoto width?
« Reply #3 on: October 14, 2015, 01:14:47 AM »
Do you have any sample code on how to calculate this?

I have a problem where the ortho is larger than 65500px and that can not be exported as it exceeds the jpg limit in size. I need to some how estimate how big the jpg is going to be and if bigger than 65500px then I need to reduce the size to within that number.

Thanks for any help.

mcstieg

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: How do you specify orthophoto width?
« Reply #4 on: August 24, 2020, 04:06:19 PM »
Would be very interested too!  ;D
Haven't found a hint on how to read the mesh vertices x,y,z values.

Edit: Found it. (.coord)
« Last Edit: August 24, 2020, 04:57:08 PM by mcstieg »