From 8bf66b35cb31a315cab6ed41dae16fc97fa33b23 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 23 Mar 2021 23:51:23 -0400 Subject: [PATCH] Fixes --- opendm/multispectral.py | 2 +- opendm/thermal.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/opendm/multispectral.py b/opendm/multispectral.py index d812ca13..2d9fac39 100644 --- a/opendm/multispectral.py +++ b/opendm/multispectral.py @@ -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: diff --git a/opendm/thermal.py b/opendm/thermal.py index 490d3ed9..80878bb7 100644 --- a/opendm/thermal.py +++ b/opendm/thermal.py @@ -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():