Add --matcher-type option

pull/1210/head
Piero Toffanin 2020-12-06 10:02:33 -05:00
rodzic a3fd7255f2
commit 8ac4780760
2 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -157,6 +157,15 @@ def config(argv=None, parser=None):
'Can be one of: %(choices)s. Default: '
'%(default)s'))
parser.add_argument('--matcher-type',
metavar='<string>',
action=StoreValue,
default='flann',
choices=['flann', 'bow'],
help=('Matcher algorithm, Fast Library for Approximate Nearest Neighbors or Bag of Words. FLANN is slower, but more stable. BOW is faster, but can sometimes miss valid matches. '
'Can be one of: %(choices)s. Default: '
'%(default)s'))
parser.add_argument('--matcher-neighbors',
metavar='<integer>',
action=StoreValue,

Wyświetl plik

@ -105,7 +105,7 @@ class OSFMContext:
except Exception as e:
log.ODM_WARNING("Cannot set camera_models_overrides.json: %s" % str(e))
use_bow = False
use_bow = args.matcher_type == "bow"
feature_type = "SIFT"
# GPSDOP override if we have GPS accuracy information (such as RTK)