removed file_path field from ODMPhoto, refactoring to use relative paths in run_opensfm

pull/918/head
Piero Toffanin 2018-11-25 08:59:52 -05:00
rodzic 3803891250
commit 89a63879aa
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -17,7 +17,6 @@ class ODM_Photo:
def __init__(self, path_file, force_focal, force_ccd):
# general purpose
self.path_file = path_file
self.filename = io.extract_file_from_path_file(path_file)
# useful attibutes
self.width = None
@ -33,7 +32,7 @@ class ODM_Photo:
self.longitude = None
self.altitude = None
# parse values from metadata
self.parse_exif_values(self.path_file, force_focal, force_ccd)
self.parse_exif_values(path_file, force_focal, force_ccd)
# compute focal length into pixels
self.update_focal()

Wyświetl plik

@ -66,7 +66,7 @@ class ODMOpenSfMCell(ecto.Cell):
for photo in photos:
if not photo.altitude:
has_alt = False
fout.write('%s\n' % photo.path_file)
fout.write('%s\n' % io.join_paths(tree.dataset_raw, photo.filename))
# create config file for OpenSfM
config = [