kopia lustrzana https://github.com/OpenDroneMap/ODM
Exposed some opensfm parameters
rodzic
3328f0e2cb
commit
400899d5f9
|
@ -147,6 +147,40 @@ def config():
|
|||
help=('The maximum number of processes to use in dense '
|
||||
'reconstruction. Default: %(default)s'))
|
||||
|
||||
parser.add_argument('--opensfm-depthmap-resolution',
|
||||
metavar='<positive float>',
|
||||
type=float,
|
||||
default=640,
|
||||
help=('Resolution of the depthmaps. Higher values take longer to compute '
|
||||
'but produce denser point clouds. '
|
||||
'Default: %(default)s'))
|
||||
|
||||
parser.add_argument('--opensfm-depthmap-min-consistent-views',
|
||||
metavar='<integer: 2 <= x <= 9>',
|
||||
type=int,
|
||||
default=3,
|
||||
help=('Minimum number of views that should reconstruct a point for it to be valid. Use lower values '
|
||||
'if your images have few overlap. Lower values result in denser point clouds '
|
||||
'but with more noise. '
|
||||
'Default: %(default)s'))
|
||||
|
||||
parser.add_argument('--opensfm-depthmap-method',
|
||||
metavar='<string>',
|
||||
default='PATCH_MAP',
|
||||
choices=['PATCH_MAP', 'BRUTE_FORCE', 'PATCH_MATCH_SAMPLE'],
|
||||
help=('Raw depthmap computation algorithm. '
|
||||
'PATCH_MAP and PATCH_MATCH_SAMPLE are faster, but might miss some valid points. '
|
||||
'BRUTE_FORCE takes longer but produces denser reconstructions. '
|
||||
'Default: %(default)s'))
|
||||
|
||||
parser.add_argument('--opensfm-depthmap-min-patch-sd',
|
||||
metavar='<positive float>',
|
||||
type=float,
|
||||
default=1,
|
||||
help=('When using PATCH_MAP or PATCH_MATCH_SAMPLE, controls the standard deviation threshold to include patches. '
|
||||
'Patches with lower standard deviation are ignored. '
|
||||
'Default: %(default)s'))
|
||||
|
||||
parser.add_argument('--use-hybrid-bundle-adjustment',
|
||||
action='store_true',
|
||||
default=False,
|
||||
|
|
|
@ -76,9 +76,10 @@ class ODMOpenSfMCell(ecto.Cell):
|
|||
"feature_min_frames: %s" % self.params.feature_min_frames,
|
||||
"processes: %s" % self.params.processes,
|
||||
"matching_gps_neighbors: %s" % self.params.matching_gps_neighbors,
|
||||
# "depthmap_resolution: 2560",
|
||||
# "depthmap_min_patch_sd: 4.0",
|
||||
# "depthmap_min_consistent_views: 3",
|
||||
"depthmap_method: %s" % args.opensfm_depthmap_method,
|
||||
"depthmap_resolution: %s" % args.opensfm_depthmap_resolution,
|
||||
"depthmap_min_patch_sd: %s" % args.opensfm_depthmap_min_patch_sd,
|
||||
"depthmap_min_consistent_views: %s" % args.opensfm_depthmap_min_consistent_views,
|
||||
"optimize_camera_parameters: %s" % ('no' if self.params.fixed_camera_params else 'yes')
|
||||
]
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue