kopia lustrzana https://github.com/OpenDroneMap/ODM
Fixes
rodzic
2032d35580
commit
8bf66b35cb
|
@ -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:
|
||||
|
|
|
@ -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():
|
||||
|
|
Ładowanie…
Reference in New Issue