Skip to content

Commit

Permalink
small fix for ipmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Aug 3, 2021
1 parent 8e2f38b commit 41a5cdb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions asap_stereo/asap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1651,9 +1651,10 @@ def find_matches(self, reference_image, *mobile_images, ipfindkwargs=None, ipmat
# get vwip file
mob_img_vwip = Path(mobile_image).with_suffix('.vwip').absolute()
# run ipmatch
self.cs.ipmatch(*ipmatchkwargs, reference_image, ref_img_vwip, mobile_image, mob_img_vwip)
output_prefix = f'{Path(reference_image).stem}__{Path(mobile_image).stem}'
self.cs.ipmatch(*ipmatchkwargs, reference_image, ref_img_vwip, mobile_image, mob_img_vwip, '--output-prefix', f'./{output_prefix}')
# done, todo return tuple of vwip/match files
yield f'{Path(reference_image).stem}__{Path(mobile_image).stem}.match'
yield f'{output_prefix}.match'

def matches_to_csv(self, match_file):
"""
Expand Down

0 comments on commit 41a5cdb

Please sign in to comment.