Syntax fix, always optimize

pull/1580/head
Piero Toffanin 2023-01-10 09:38:13 -05:00
rodzic 3f6b8b4936
commit aa82f76747
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -389,7 +389,7 @@ 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
parser.add_argument('--pc-skip-geometric',
action=StoreTrue,
nargs=0,
default=False,

Wyświetl plik

@ -95,9 +95,8 @@ class ODMOpenMVSStage(types.ODM_Stage):
if masks:
extra_config.append("--ignore-mask-label 0")
sharp = args.pc_skip_geometric
with open(densify_ini_file, 'w+') as f:
f.write("Optimize = %s\n" % (3 if sharp else 7))
f.write("Optimize = 7\n")
def run_densify():
system.run('"%s" "%s" %s' % (context.omvs_densify_path,