Merge pull request #1580 from smathermather/add-skip-geometric

add --pc-skip-geometric
pull/1583/head
Piero Toffanin 2023-01-10 13:42:04 -05:00 zatwierdzone przez GitHub
commit d105f3f499
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -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,

Wyświetl plik

@ -86,7 +86,10 @@ class ODMOpenMVSStage(types.ODM_Stage):
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: