Skip to content

Commit

Permalink
Merge pull request #1732 from OpenDroneMap/nolocalseam
Browse files Browse the repository at this point in the history
Deprecate texturing-skip-local-seam-leveling
  • Loading branch information
pierotofy authored Dec 11, 2023
2 parents 32d9330 + 76a061b commit 1283df2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
9 changes: 1 addition & 8 deletions opendm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
'texturing_keep_unseen_faces': 'mvs_texturing',
'texturing_single_material': 'mvs_texturing',
'texturing_skip_global_seam_leveling': 'mvs_texturing',
'texturing_skip_local_seam_leveling': 'mvs_texturing',
'tiles': 'odm_dem',
'use_3dmesh': 'mvs_texturing',
'use_exif': 'dataset',
Expand Down Expand Up @@ -543,12 +542,6 @@ def config(argv=None, parser=None):
default=False,
help=('Skip normalization of colors across all images. Useful when processing radiometric data. Default: %(default)s'))

parser.add_argument('--texturing-skip-local-seam-leveling',
action=StoreTrue,
nargs=0,
default=False,
help='Skip the blending of colors near seams. Default: %(default)s')

parser.add_argument('--texturing-keep-unseen-faces',
action=StoreTrue,
nargs=0,
Expand Down Expand Up @@ -887,7 +880,7 @@ def config(argv=None, parser=None):
'Default: %(default)s'))

args, unknown = parser.parse_known_args(argv)
DEPRECATED = ["--verbose", "--debug", "--time", "--resize-to", "--depthmap-resolution", "--pc-geometric", "--texturing-data-term", "--texturing-outlier-removal-type", "--texturing-tone-mapping"]
DEPRECATED = ["--verbose", "--debug", "--time", "--resize-to", "--depthmap-resolution", "--pc-geometric", "--texturing-data-term", "--texturing-outlier-removal-type", "--texturing-tone-mapping", "--texturing-skip-local-seam-leveling"]
unknown_e = [p for p in unknown if p not in DEPRECATED]
if len(unknown_e) > 0:
raise parser.error("unrecognized arguments: %s" % " ".join(unknown_e))
Expand Down
5 changes: 0 additions & 5 deletions stages/mvstex.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,11 @@ def add_run(nvm_file, primary=True, band=None):

# Format arguments to fit Mvs-Texturing app
skipGlobalSeamLeveling = ""
skipLocalSeamLeveling = ""
keepUnseenFaces = ""
nadir = ""

if args.texturing_skip_global_seam_leveling:
skipGlobalSeamLeveling = "--skip_global_seam_leveling"
if args.texturing_skip_local_seam_leveling:
skipLocalSeamLeveling = "--skip_local_seam_leveling"
if args.texturing_keep_unseen_faces:
keepUnseenFaces = "--keep_unseen_faces"
if (r['nadir']):
Expand All @@ -102,7 +99,6 @@ def add_run(nvm_file, primary=True, band=None):
'dataTerm': 'gmi',
'outlierRemovalType': 'gauss_clamping',
'skipGlobalSeamLeveling': skipGlobalSeamLeveling,
'skipLocalSeamLeveling': skipLocalSeamLeveling,
'keepUnseenFaces': keepUnseenFaces,
'toneMapping': 'none',
'nadirMode': nadir,
Expand All @@ -125,7 +121,6 @@ def add_run(nvm_file, primary=True, band=None):
'-t {toneMapping} '
'{intermediate} '
'{skipGlobalSeamLeveling} '
'{skipLocalSeamLeveling} '
'{keepUnseenFaces} '
'{nadirMode} '
'{labelingFile} '
Expand Down

0 comments on commit 1283df2

Please sign in to comment.