Skip to content

Commit c4bde1b

Browse files
store stitcher arguments in verbose mode (#227)
1 parent 4ab9bf7 commit c4bde1b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

stitching/stitcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def __init__(self, **kwargs):
5252
def initialize_stitcher(self, **kwargs):
5353
self.settings = self.DEFAULT_SETTINGS.copy()
5454
self.validate_kwargs(kwargs)
55+
self.kwargs = kwargs
5556
self.settings.update(kwargs)
5657

5758
args = SimpleNamespace(**self.settings)

stitching/verbose.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
def verbose_stitching(stitcher, images, feature_masks=[], verbose_dir=None):
1111
_dir = "." if verbose_dir is None else verbose_dir
1212

13+
with open(verbose_output(_dir, "00_stitcher.txt"), "w") as file:
14+
file.write(type(stitcher).__name__ + "(**" + str(stitcher.kwargs) + ")")
15+
1316
images = Images.of(
1417
images, stitcher.medium_megapix, stitcher.low_megapix, stitcher.final_megapix
1518
)

0 commit comments

Comments
 (0)