Wording, eps tweak

pull/1221/head
Piero Toffanin 2020-12-15 12:54:31 -05:00
rodzic ae118f7782
commit 8e49d99939
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -756,8 +756,8 @@ def config(argv=None, parser=None):
action=StoreTrue,
nargs=0,
default=False,
help=('When processing multispectral datasets, ODM will automatically align images for each band. '
'If your images have been postprocessed and are already aligned, you should use this option, which will skip the alignment computations. '
help=('When processing multispectral datasets, ODM will automatically align the images for each band. '
'If the images have been postprocessed and are already aligned, use this option. '
'Default: %(default)s'))
args = parser.parse_args(argv)

Wyświetl plik

@ -408,7 +408,7 @@ def compute_homography(image_filename, align_image_filename):
log.ODM_WARNING("Compute homography: %s" % str(e))
return None, None, (None, None)
def find_ecc_homography(image_gray, align_image_gray, number_of_iterations=1000, termination_eps=1e-7, start_eps=1e-4):
def find_ecc_homography(image_gray, align_image_gray, number_of_iterations=1000, termination_eps=1e-8, start_eps=1e-4):
pyramid_levels = 0
h,w = image_gray.shape
min_dim = min(h, w)
@ -486,7 +486,7 @@ def find_features_homography(image_gray, align_image_gray, feature_retention=0.2
except Exception as e:
log.ODM_INFO("Cannot match features")
return None
# Sort by score
matches.sort(key=lambda x: x.distance, reverse=False)