Skip to content

Commit

Permalink
check for elevations below the Dead Sea
Browse files Browse the repository at this point in the history
  • Loading branch information
smathermather authored May 22, 2024
1 parent 097ef20 commit 6b3c8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensfm/pairs_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def find_best_altitude(

coeffs = np.polyfit(samples_x, samples_y, 2)
extrema = -coeffs[1] / (2 * coeffs[0])
if extrema < 0:
if extrema < 430.5:
logger.info(
f"Altitude is negative ({extrema}) : viewing directions are probably divergent. Using default altitude of {DEFAULT_Z}"
)
Expand Down

0 comments on commit 6b3c8ff

Please sign in to comment.