update mve, change pdal config parameters, add pdal path

Former-commit-id: 664e64b279
pull/1161/head
India Johnson 2019-03-20 20:55:35 +00:00
rodzic 3ccf9bcb13
commit 40d06d6de9
3 zmienionych plików z 22 dodań i 6 usunięć

Wyświetl plik

@ -132,7 +132,7 @@ endforeach()
externalproject_add(mve
GIT_REPOSITORY https://github.com/simonfuhrmann/mve.git
GIT_TAG 2106a5b0aef61a7f744551510b1b4c5d8e3be594
GIT_TAG 97c5b741bebcb5b74976db679344acefab320e70
UPDATE_COMMAND ""
SOURCE_DIR ${SB_SOURCE_DIR}/elibs/mve
CONFIGURE_COMMAND ""

Wyświetl plik

@ -28,6 +28,8 @@ makescene_path = os.path.join(superbuild_path, 'src', 'elibs', 'mve', 'apps', 'm
mve_path = os.path.join(superbuild_path, 'src', 'elibs', 'mve', 'apps', 'dmrecon', 'dmrecon')
mve_path_pc = os.path.join(superbuild_path, 'src', 'elibs', 'mve', 'apps', 'scene2pset', 'scene2pset')
pdal_path_pc = os.path.join(superbuild_path, 'install/bin/pdal')
poisson_recon_path = os.path.join(superbuild_path, 'src', 'PoissonRecon', 'Bin', 'Linux', 'PoissonRecon')
dem2mesh_path = os.path.join(superbuild_path, 'src', 'dem2mesh', 'dem2mesh')
dem2points_path = os.path.join(superbuild_path, 'src', 'dem2points', 'dem2points')

Wyświetl plik

@ -68,7 +68,7 @@ class ODMMveCell(ecto.Cell):
# config
#dmrecon config
config = [
"-s%s" % args.mve_output_scale,
#"-s%s" % args.max_concurrency,
@ -76,19 +76,33 @@ class ODMMveCell(ecto.Cell):
]
#run mve
system.run('%s %s %s' % (context.mve_path, ' '.join(config), tree.mve))
#run dmrecon
# system.run('%s %s %s' % (context.mve_path, ' '.join(config), tree.mve))
#config
#scene2pset config
config = [
"-F1",
"--with-conf"
]
# run mve
# run scene2pset
system.run('%s %s %s %s' % (context.mve_path_pc, ' '.join(config), tree.mve, tree.mve_model))
#pdal config
config = [
'translate -i mve_dense_point_cloud.ply',
'-o filtered.ply',
'-f range range',
'--filters.range.limits=confidence[0.25:1]'
]
# run pdal
system.run('%s %s %s %s' % (context.pdal_path_pc, ' '.join(config), tree.mve, tree.mve_model))
# find and rename the output file for simplicity
mve_files = glob.glob(os.path.join(tree.mve, 'mve-*'))