Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make merging the DSMs optional #34

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion s2p/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def main(user_cfg, start_from=0, merge_matches=False):
parallel.launch_calls(plys_to_dsm, tiles, nb_workers, timeout=timeout)

# global-dsm-rasterization step:
if start_from <= 7:
if start_from <= 7 and cfg['merge_dsms']:
print('7) computing global DSM...')
global_dsm(tiles)

Expand Down
3 changes: 3 additions & 0 deletions s2p/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
# switch to True if you want to process the whole image
cfg['full_img'] = False

# set to False if you don't want to merge the dsm tiles
cfg['merge_dsms'] = True

# s2p processes the images tile by tile. The tiles are squares cropped from the
# reference image. The width and height of the tiles are given by this param, in pixels.
cfg['tile_size'] = 800
Expand Down
Loading