kopia lustrzana https://github.com/OpenDroneMap/ODM
Exposed --nadir_weight parameter in mvstexturing
rodzic
e56236b411
commit
285607de96
|
@ -311,6 +311,16 @@ def config():
|
|||
help=('Data term: [area, gmi]. Default: '
|
||||
'%(default)s'))
|
||||
|
||||
parser.add_argument('--texturing-nadir-weight',
|
||||
metavar='<integer: 0 <= x <= 32>',
|
||||
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='<string>',
|
||||
default='gauss_clamping',
|
||||
|
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue