Add warning on negative GSD estimate

pull/1161/head
Piero Toffanin 2020-09-28 10:51:35 -04:00
rodzic e650185f9d
commit 99f0538fcc
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -127,7 +127,10 @@ def opensfm_reconstruction_average_gsd(reconstruction_json, use_all_shots=False)
camera['width']))
if len(gsds) > 0:
return abs(np.mean(gsds))
mean = np.mean(gsds)
if mean < 0:
log.ODM_WARNING("Negative GSD estimated, this might indicate a flipped Z-axis.")
return abs(mean)
return None