Skip to content

Commit 75e1be5

Browse files
authored
Merge pull request #1840 from pierotofy/omvsmin
Pass --min-resolution parameter to OpenMVS
2 parents ebe0ced + 5552dcc commit 75e1be5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stages/openmvs.py

+2
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,13 @@ def process(self, args, outputs):
6363
densify_ini_file = os.path.join(tree.openmvs, 'Densify.ini')
6464
subres_levels = 2 # The number of lower resolutions to process before estimating output resolution depthmap.
6565
filter_point_th = -20
66+
min_resolution = 320 if args.pc_quality in ["low", "lowest"] else 640
6667

6768
config = [
6869
"--resolution-level %s" % int(resolution_level),
6970
'--dense-config-file "%s"' % densify_ini_file,
7071
"--max-resolution %s" % int(outputs['undist_image_max_size']),
72+
"--min-resolution %s" % min_resolution,
7173
"--max-threads %s" % args.max_concurrency,
7274
"--number-views-fuse %s" % number_views_fuse,
7375
"--sub-resolution-levels %s" % subres_levels,

0 commit comments

Comments
 (0)