File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,20 @@ def estimateOffset():
15
15
minOff ,maxOff = sync .sync (logPath ,imagesPath ,None )
16
16
print ('\n Min: ' + str (minOff )+ '\t Max: ' + str (maxOff ))
17
17
18
- offset = minOff
18
+
19
+ minOff = PhotoScan .app .getFloat ('Min. offset (s):' ,minOff )
20
+ maxOff = PhotoScan .app .getFloat ('Max. offset (s):' ,maxOff )
21
+
19
22
interval = maxOff - minOff
20
23
step = interval / PhotoScan .app .getInt ('Get number of steps for the offset search (%2.0fs interval)' % (int (interval )),50 )
24
+
25
+ # Run iteration
26
+ offset = minOff
21
27
while offset < maxOff :
22
28
sync .sync (logPath , imagesPath ,offset )
23
29
agisoftUtil .applyGeoreference (imagesPath )
24
30
error = agisoftUtil .getTotalError ()
25
- print ('offset:{:8.1f}s \t error: {:8.2f}m' .format (offset ,error )+ ' - ' + '|' * int (error * 3 ))
31
+ print ('offset:{:8.1f}s \t error: {:8.2f}m' .format (offset ,error )+ ' - ' + '|' * int (error / 2 ))
26
32
PhotoScan .app .update ()
27
33
offset = offset + step ;
28
34
You can’t perform that action at this time.
0 commit comments