From 285607de963c449e77cf726f2a9ec2d14f57b4e3 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 8 Jul 2018 00:16:45 -0400 Subject: [PATCH] Exposed --nadir_weight parameter in mvstexturing --- opendm/config.py | 10 ++++++++++ scripts/mvstex.py | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/opendm/config.py b/opendm/config.py index 8d2db14b..218683da 100644 --- a/opendm/config.py +++ b/opendm/config.py @@ -311,6 +311,16 @@ def config(): help=('Data term: [area, gmi]. Default: ' '%(default)s')) + parser.add_argument('--texturing-nadir-weight', + metavar='', + default=16, + type=int, + help=('Affects orthophotos only. ' + 'Higher values result in sharper corners, but can affect color distribution and blurriness. ' + 'Use lower values for planar areas and higher values for urban areas. ' + 'The default value works well for most scenarios. Default: ' + '%(default)s')) + parser.add_argument('--texturing-outlier-removal-type', metavar='', default='gauss_clamping', diff --git a/scripts/mvstex.py b/scripts/mvstex.py index f316670f..7f261597 100644 --- a/scripts/mvstex.py +++ b/scripts/mvstex.py @@ -102,7 +102,8 @@ class ODMMvsTexCell(ecto.Cell): 'skipHoleFilling': skipHoleFilling, 'keepUnseenFaces': keepUnseenFaces, 'toneMapping': self.params.tone_mapping, - 'nadirMode': nadir + 'nadirMode': nadir, + 'nadirWeight': 2 ** args.texturing_nadir_weight - 1 } if args.use_opensfm_dense: @@ -126,7 +127,8 @@ class ODMMvsTexCell(ecto.Cell): '{skipLocalSeamLeveling} ' '{skipHoleFilling} ' '{keepUnseenFaces} ' - '{nadirMode}'.format(**kwargs)) + '{nadirMode} ' + '-n {nadirWeight}'.format(**kwargs)) else: log.ODM_WARNING('Found a valid ODM Texture file in: %s' % odm_textured_model_obj)