From 2cb2ee281bdcc3b42fb4453291a61182b9b284a1 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 30 Jun 2019 10:21:37 -0400 Subject: [PATCH] Removed --images arg --- opendm/config.py | 4 ---- opendm/types.py | 7 ++----- stages/dataset.py | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/opendm/config.py b/opendm/config.py index 91f0fc87..0664d1a7 100644 --- a/opendm/config.py +++ b/opendm/config.py @@ -55,10 +55,6 @@ parser = SettingsParser(description='OpenDroneMap', yaml_file=open(context.settings_path)) def config(): - parser.add_argument('--images', '-i', - metavar='', - help='Path to input images'), - parser.add_argument('--project-path', metavar='', help='Path to the project folder') diff --git a/opendm/types.py b/opendm/types.py index f0ed5669..2079f62e 100644 --- a/opendm/types.py +++ b/opendm/types.py @@ -220,13 +220,10 @@ class ODM_GeoRef(object): class ODM_Tree(object): - def __init__(self, root_path, images_path, gcp_file = None): + def __init__(self, root_path, gcp_file = None): # root path to the project self.root_path = io.absolute_path_file(root_path) - if not images_path: - self.input_images = io.join_paths(self.root_path, 'images') - else: - self.input_images = io.absolute_path_file(images_path) + self.input_images = io.join_paths(self.root_path, 'images') # modules paths diff --git a/stages/dataset.py b/stages/dataset.py index 6c7b8721..4ffb194c 100644 --- a/stages/dataset.py +++ b/stages/dataset.py @@ -39,7 +39,7 @@ def load_images_database(database_file): class ODMLoadDatasetStage(types.ODM_Stage): def process(self, args, outputs): # Load tree - tree = types.ODM_Tree(args.project_path, args.images, args.gcp) + tree = types.ODM_Tree(args.project_path, args.gcp) outputs['tree'] = tree if args.time and io.file_exists(tree.benchmarking):