Forum

Author Topic: Distance and angle calculation and rolling shutter in 1.4  (Read 21223 times)

DamHoh

  • Newbie
  • *
  • Posts: 2
    • View Profile
Distance and angle calculation and rolling shutter in 1.4
« on: March 12, 2018, 02:30:45 PM »
Hi there,

Thanks for answering my question in advance! I searched the forum, however, except install numpy or geopy, is there a build function in PhotoScan to calculate the distance between two GCPs and angles?

Also for PhotoScan 1.4, the rolling shutter function is not in optimising panel, how can I enable it?

Thanks,


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Distance and angle calculation and rolling shutter in 1.4
« Reply #1 on: March 22, 2018, 01:18:10 PM »
Hello DamHoh,

As for the optimization of the rolling shutter, now the rolling shutter is a property of the calibration group (sensor), so if you need to optimize it, you should set it to True before running the optimization procedure:
Code: [Select]
chunk.sensors[0].rolling_shutter = True
chunk.optimizeCameras()


To calculate the distance between two GCPs defined by the markers, you can use the following code:
Code: [Select]
point1 = chunk.markers[0]
point2 = chunk.markers[1]
distance = (point1.position - point2.position).norm() * chunk.transform.scale
And which angle do you need to calculate?
Best regards,
Alexey Pasumansky,
Agisoft LLC

DamHoh

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Distance and angle calculation and rolling shutter in 1.4
« Reply #2 on: April 03, 2018, 03:42:58 AM »
Hello Alexey,

That's great help, hope you've had a good long weekend. Does there any difference to add rolling shutter option to sensor rather than in the reoptimising function? I'm currently trying to calculate the grid angles between two points using math... It is convenient to have those function in PS.

LFSantosgeo

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Distance and angle calculation and rolling shutter in 1.4
« Reply #3 on: July 12, 2018, 05:44:03 AM »
Hello!

How do I know by python if the rolling shutter is enabled? Or if it was done?

Thanks!
Luiz Fernando