# aligner.init() if args.transform: aligner.step2() # init stitcher if args.stitch: stitcher.INPUT_DIR = config.INPUT_DIR_STITCHER stitcher.OUTPUT_DIR = config.OUTPUT_DIR_STITCHER input_images_stitcher = [["stitcher_test/1.jpg", "stitcher_test/2.jpg"]] stitcher.init() stitcher.run(input_images_stitcher) # init stacker if not args.align and not args.transform and not args.stitch: # expand all paths for directory in config.DIRS_TO_EXPAND_STACKER: variable = getattr(config, directory) if variable is None: print("warning: variable {} empty. not expanded".format(directory)) continue setattr(config, directory, path_check_and_expand(variable)) for directory in config.DIRS_TO_CREATE_STACKER:
# aligner.init() if args.transform: aligner.step2() # init stitcher if args.stitch: stitcher.INPUT_DIR = config.INPUT_DIR_STITCHER stitcher.OUTPUT_DIR = config.OUTPUT_DIR_STITCHER input_images_stitcher = [["stitcher_test/01.jpg", "stitcher_test/02.jpg"]] stitcher.init() stitcher.run(input_images_stitcher) # init stacker if not args.align and not args.transform and not args.stitch: # expand all paths for directory in config.DIRS_TO_EXPAND_STACKER: variable = getattr(config, directory) if variable is None: print("warning: variable {} empty. not expanded".format(directory)) continue setattr(config, directory, path_check_and_expand(variable)) for directory in config.DIRS_TO_CREATE_STACKER: