pull/1246/head
Piero Toffanin 2021-03-23 23:51:23 -04:00
rodzic 2032d35580
commit 8bf66b35cb
2 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -346,7 +346,7 @@ def compute_homography(image_filename, align_image_filename):
max_dim = max(image_gray.shape)
if max_dim <= 320:
log.ODM_WARNING("Small image for band alignment (%sx%s), this might be tough to compute." % (w, h))
log.ODM_WARNING("Small image for band alignment (%sx%s), this might be tough to compute." % (image_gray.shape[1], image_gray.shape[0]))
align_image = imread(align_image_filename, unchanged=True, anydepth=True)
if align_image.shape[2] == 3:

Wyświetl plik

@ -27,8 +27,6 @@ def dn_to_temperature(photo, image):
"""
image = image.astype("float32")
if len(image.shape) != 3:
raise ValueError("Image should have shape length of 3 (got: %s)" % len(image.shape))
# Handle thermal bands
if photo.is_thermal():