Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 204d48b

Browse files
feat: use srtm for disparity if use_srtm is true
1 parent 69d3b2f commit 204d48b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

s2p/rpc_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ def exogenous_disp_range_estimation(rpc1, rpc2, x, y, w, h, H1, H2, cfg, A=None,
445445
disparity is made horizontal thanks to the two rectifying homographies
446446
H1 and H2.
447447
"""
448+
if cfg['exogenous_dem'] is None and cfg.get('exogenous_dem', None) in [None, False]:
449+
return
450+
448451
m, M = altitude_range(rpc1, x, y, w, h, cfg, margin_top, margin_bottom)
449452

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

0 commit comments

Comments
 (0)