Merge pull request #1161 from pierotofy/gsdest

Try to estimate GSD for flipped Z axis datasets
pull/1165/head
Piero Toffanin 2020-09-28 13:04:06 -04:00 zatwierdzone przez GitHub
commit a1d4cd5ba8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -128,8 +128,9 @@ def opensfm_reconstruction_average_gsd(reconstruction_json, use_all_shots=False)
if len(gsds) > 0:
mean = np.mean(gsds)
if mean > 0:
return mean
if mean < 0:
log.ODM_WARNING("Negative GSD estimated, this might indicate a flipped Z-axis.")
return abs(mean)
return None