Updated opensfm code

pull/992/head
Piero Toffanin 2019-05-30 16:54:18 -04:00
rodzic 05d0706da1
commit 45f5d958fb
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -151,9 +151,12 @@ class OSFMContext:
log.ODM_INFO("Aligning submodels...")
meta_data = metadataset.MetaDataSet(self.opensfm_project_path)
reconstruction_shots = tools.load_reconstruction_shots(meta_data)
transformations = tools.align_reconstructions(reconstruction_shots, use_points_constraints=False)
transformations = tools.align_reconstructions(reconstruction_shots,
tools.partial_reconstruction_name,
True)
tools.apply_transformations(transformations)
with open(alignment_file, 'w') as fout:
fout.write("Alignment done!\n")
else:

Wyświetl plik

@ -72,7 +72,6 @@ class ODMOpenSfMStage(types.ODM_Stage):
elif args.use_opensfm_dense:
if not io.file_exists(output_file) or self.rerun():
#octx.run('undistort') # TODO can we use PNGs here?
octx.run('compute_depthmaps')
else:
log.ODM_WARNING("Found a valid dense reconstruction in %s" % output_file)