Skip to content

Commit

Permalink
Minor tuneup
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-alexandrov committed Aug 6, 2024
1 parent 79c824e commit 555e0d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/asp/Tools/parallel_stereo
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ def create_symlinks_for_multiview(opt, args, settings):
out-prefix-4096_4096_1629_1629/4096_4096_1629_1629-pair2/2-F.tif
Create the latter as a sym link.
"""
print("args 6 is ", " ".join(args))
subdirs = create_subdirs_symlink(opt, args, settings) # symlink L.tif, etc

for s in sorted(settings.keys()):
Expand Down
4 changes: 2 additions & 2 deletions src/asp/Tools/stereo_parse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ void produceTiles(std::string const& output_prefix,
int curr_tile_x = tile_x;
int curr_tile_y = tile_y;
if (ix == tiles_nx - 1)
curr_tile_x = int(trans_left_image_size[0]) - ix * tile_x;
curr_tile_x = std::max(int(trans_left_image_size[0]) - ix * tile_x, 0);
if (iy == tiles_ny - 1)
curr_tile_y = int(trans_left_image_size[1]) - iy * tile_y;
curr_tile_y = std::max(int(trans_left_image_size[1]) - iy * tile_y, 0);

int beg_x = ix * tile_x;
int beg_y = iy * tile_y;
Expand Down

0 comments on commit 555e0d6

Please sign in to comment.