Skip to content

Commit

Permalink
Merge pull request #89 from ljjTYJR/master
Browse files Browse the repository at this point in the history
update the sequential matching
  • Loading branch information
franioli authored Jan 2, 2025
2 parents 6078955 + c6a9c49 commit 8c6c27f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/deep_image_matching/pairs_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ def pairs_from_sequential(
img_list: List[Union[str, Path]], overlap: int
) -> List[tuple]:
pairs = []
for i in range(len(img_list) - overlap):
for i in range(len(img_list)):
for k in range(overlap):
j = i + k + 1
if j >= len(img_list):
break
im1 = img_list[i]
im2 = img_list[j]
pairs.append((im1, im2))
Expand Down

0 comments on commit 8c6c27f

Please sign in to comment.