Skip to content

Commit

Permalink
Merge pull request #1580 from smathermather/add-skip-geometric
Browse files Browse the repository at this point in the history
add --pc-skip-geometric
  • Loading branch information
pierotofy committed Jan 10, 2023
2 parents 4c77ce4 + aa82f76 commit d105f3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions opendm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,13 @@ def config(argv=None, parser=None):
help='Filters the point cloud by keeping only a single point around a radius N (in meters). This can be useful to limit the output resolution of the point cloud and remove duplicate points. Set to 0 to disable sampling. '
'Default: %(default)s')

parser.add_argument('--pc-skip-geometric',
action=StoreTrue,
nargs=0,
default=False,
help='Geometric estimates improve the accuracy of the point cloud by computing geometrically consistent depthmaps but may not be usable in larger datasets. This flag disables geometric estimates. '
'Default: %(default)s')

parser.add_argument('--pc-tile',
action=StoreTrue,
nargs=0,
Expand Down
5 changes: 4 additions & 1 deletion stages/openmvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ def process(self, args, outputs):
config.append("--fusion-mode 1")

extra_config = []


if args.pc_skip_geometric:
extra_config.append("--geometric-iters 0")

masks_dir = os.path.join(tree.opensfm, "undistorted", "masks")
masks = os.path.exists(masks_dir) and len(os.listdir(masks_dir)) > 0
if masks:
Expand Down

0 comments on commit d105f3f

Please sign in to comment.