From a342d23bc93dd8ab77d99acd53eeaa288cba596f Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Thu, 16 May 2019 13:42:56 -0400 Subject: [PATCH] matcher-distance bug fix Former-commit-id: 6b60089abdaeba156474b1a18322adf636a94edd --- opendm/osfm.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/opendm/osfm.py b/opendm/osfm.py index fd4821c7..de928095 100644 --- a/opendm/osfm.py +++ b/opendm/osfm.py @@ -79,11 +79,12 @@ class OSFMContext: "feature_min_frames: %s" % args.min_num_features, "processes: %s" % args.max_concurrency, "matching_gps_neighbors: %s" % args.matcher_neighbors, + "matching_gps_distance: %s" % args.matcher_distance, "depthmap_method: %s" % args.opensfm_depthmap_method, "depthmap_resolution: %s" % args.depthmap_resolution, "depthmap_min_patch_sd: %s" % args.opensfm_depthmap_min_patch_sd, "depthmap_min_consistent_views: %s" % args.opensfm_depthmap_min_consistent_views, - "optimize_camera_parameters: %s" % ('no' if args.use_fixed_camera_params else 'yes') + "optimize_camera_parameters: %s" % ('no' if args.use_fixed_camera_params else 'yes'), ] if has_alt: @@ -100,9 +101,6 @@ class OSFMContext: config.append("bundle_new_points_ratio: 1.2") # Bundle when (new points) / (bundled points) > bundle_new_points_ratio config.append("local_bundle_radius: 1") # Max image graph distance for images to be included in local bundle adjustment - if args.matcher_distance > 0: - config.append("matching_gps_distance: %s" % args.matcher_distance) - if gcp_path: config.append("bundle_use_gcp: yes") io.copy(gcp_path, self.path("gcp_list.txt"))