Skip to content

Commit 2df4afa

Browse files
authored
Merge pull request #1716 from pierotofy/fcp
Fix fast_floor in FPC Filter, Invalid PLY file (expected 'property uint8 views')
2 parents 237bf8f + e5ed688 commit 2df4afa

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

SuperBuild/cmake/External-FPCFilter.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ExternalProject_Add(${_proj_name}
88
#--Download step--------------
99
DOWNLOAD_DIR ${SB_DOWNLOAD_DIR}
1010
GIT_REPOSITORY https://github.com/OpenDroneMap/FPCFilter
11-
GIT_TAG 320
11+
GIT_TAG 331
1212
#--Update/Patch step----------
1313
UPDATE_COMMAND ""
1414
#--Configure step-------------

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
3.3.1

stages/openmvs.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def process(self, args, outputs):
6565
filter_point_th = -20
6666

6767
config = [
68-
" --resolution-level %s" % int(resolution_level),
68+
"--resolution-level %s" % int(resolution_level),
6969
'--dense-config-file "%s"' % densify_ini_file,
7070
"--max-resolution %s" % int(outputs['undist_image_max_size']),
7171
"--max-threads %s" % args.max_concurrency,
@@ -79,7 +79,6 @@ def process(self, args, outputs):
7979
gpu_config = []
8080
use_gpu = has_gpu(args)
8181
if use_gpu:
82-
#gpu_config.append("--cuda-device -3")
8382
gpu_config.append("--cuda-device -1")
8483
else:
8584
gpu_config.append("--cuda-device -2")
@@ -101,6 +100,7 @@ def run_densify():
101100
system.run('"%s" "%s" %s' % (context.omvs_densify_path,
102101
openmvs_scene_file,
103102
' '.join(config + gpu_config + extra_config)))
103+
104104
try:
105105
run_densify()
106106
except system.SubprocessException as e:
@@ -127,10 +127,10 @@ def run_densify():
127127

128128
subscene_densify_ini_file = os.path.join(tree.openmvs, 'subscene-config.ini')
129129
with open(subscene_densify_ini_file, 'w+') as f:
130-
f.write("Optimize = 0\n")
130+
f.write("Optimize = 0\nEstimation Geometric Iters = 0\n")
131131

132132
config = [
133-
"--sub-scene-area 660000",
133+
"--sub-scene-area 660000", # 8000
134134
"--max-threads %s" % args.max_concurrency,
135135
'-w "%s"' % depthmaps_dir,
136136
"-v 0",
@@ -161,9 +161,13 @@ def run_densify():
161161
config = [
162162
'--resolution-level %s' % int(resolution_level),
163163
'--max-resolution %s' % int(outputs['undist_image_max_size']),
164+
"--sub-resolution-levels %s" % subres_levels,
164165
'--dense-config-file "%s"' % subscene_densify_ini_file,
165166
'--number-views-fuse %s' % number_views_fuse,
166167
'--max-threads %s' % args.max_concurrency,
168+
'--archive-type 3',
169+
'--postprocess-dmaps 0',
170+
'--geometric-iters 0',
167171
'-w "%s"' % depthmaps_dir,
168172
'-v 0',
169173
]
@@ -179,7 +183,7 @@ def run_densify():
179183
else:
180184
# Filter
181185
if args.pc_filter > 0:
182-
system.run('"%s" "%s" --filter-point-cloud %s -v 0 %s' % (context.omvs_densify_path, scene_dense_mvs, filter_point_th, ' '.join(gpu_config)))
186+
system.run('"%s" "%s" --filter-point-cloud %s -v 0 --archive-type 3 %s' % (context.omvs_densify_path, scene_dense_mvs, filter_point_th, ' '.join(gpu_config)))
183187
else:
184188
# Just rename
185189
log.ODM_INFO("Skipped filtering, %s --> %s" % (scene_ply_unfiltered, scene_ply))

0 commit comments

Comments
 (0)