Remove duplicate function

pull/1391/head
Piero Toffanin 2021-12-28 10:03:55 -05:00
rodzic 646b2e4f70
commit 7d15bf8720
1 zmienionych plików z 0 dodań i 12 usunięć

Wyświetl plik

@ -20,18 +20,6 @@ from opensfm.geo import ecef_from_lla
projections = ['perspective', 'fisheye', 'brown', 'dual', 'equirectangular', 'spherical']
def find_largest_photo(photos):
max_photo = None
for p in photos:
if p.width is None:
continue
if max_photo is None:
max_photo = p
else:
if max_photo.width * max_photo.height < p.width * p.height:
max_photo = p
return p
def find_largest_photo_dim(photos):
max_dim = 0
for p in photos: