kopia lustrzana https://github.com/OpenDroneMap/ODM
Adds support for Altum-PT
rodzic
a56b52d0df
commit
681ee18925
|
@ -35,7 +35,7 @@ def dn_to_temperature(photo, image, images_path):
|
||||||
# Every camera stores thermal information differently
|
# Every camera stores thermal information differently
|
||||||
# The following will work for MicaSense Altum cameras
|
# The following will work for MicaSense Altum cameras
|
||||||
# but not necessarily for others
|
# but not necessarily for others
|
||||||
if photo.camera_make == "MicaSense" and photo.camera_model == "Altum":
|
if photo.camera_make == "MicaSense" and photo.camera_model[:5] == "Altum":
|
||||||
image = image.astype("float32")
|
image = image.astype("float32")
|
||||||
image -= (273.15 * 100.0) # Convert Kelvin to Celsius
|
image -= (273.15 * 100.0) # Convert Kelvin to Celsius
|
||||||
image *= 0.01
|
image *= 0.01
|
||||||
|
|
|
@ -79,8 +79,10 @@ class ODM_Reconstruction(object):
|
||||||
'REDEDGE': '5',
|
'REDEDGE': '5',
|
||||||
'RE': '5',
|
'RE': '5',
|
||||||
|
|
||||||
'LWIR': '6',
|
'PANCHRO': '6',
|
||||||
'L': '6',
|
|
||||||
|
'LWIR': '7',
|
||||||
|
'L': '7',
|
||||||
}
|
}
|
||||||
|
|
||||||
for band_name in band_indexes:
|
for band_name in band_indexes:
|
||||||
|
|
Ładowanie…
Reference in New Issue