Skip to content

Commit

Permalink
Merge pull request #45 from 20treeAI/feat/use_srtm_for_disparity
Browse files Browse the repository at this point in the history
feat: use SRTM height range for disparity range
  • Loading branch information
roelofvandijkO authored May 21, 2024
2 parents 79b2e16 + 204d48b commit 6d102c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s2p/rpc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ 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:
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)
Expand Down

0 comments on commit 6d102c6

Please sign in to comment.