diff --git a/stages/openmvs.py b/stages/openmvs.py index ea0c590e..75293eb5 100644 --- a/stages/openmvs.py +++ b/stages/openmvs.py @@ -95,12 +95,12 @@ class ODMOpenMVSStage(types.ODM_Stage): if masks: extra_config.append("--ignore-mask-label 0") - sharp = args.pc_geometric + sharp = args.pc_skip_geometric with open(densify_ini_file, 'w+') as f: - f.write("Optimize = 7\n") + f.write("Optimize = %s\n" % (3 if sharp else 7)) def run_densify(): - system.run('"%s" "%s" %s' % (context.omvs_densify_path, + .run('"%s" "%s" %s' % (context.omvs_densify_path, openmvs_scene_file, ' '.join(config + gpu_config + extra_config))) try: