Skip to content

Commit

Permalink
feat: use srtm for disparity if use_srtm is true
Browse files Browse the repository at this point in the history
  • Loading branch information
roelofvandijkO committed May 21, 2024
1 parent 69d3b2f commit 204d48b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions s2p/rpc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ def exogenous_disp_range_estimation(rpc1, rpc2, x, y, w, h, H1, H2, cfg, A=None,
disparity is made horizontal thanks to the two rectifying homographies
H1 and H2.
"""
if cfg['exogenous_dem'] is None and cfg.get('exogenous_dem', None) in [None, False]:
return

m, M = altitude_range(rpc1, x, y, w, h, cfg, margin_top, margin_bottom)

return altitude_range_to_disp_range(m, M, rpc1, rpc2, x, y, w, h, H1, H2,
Expand Down

0 comments on commit 204d48b

Please sign in to comment.