-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-mve.sh
37 lines (29 loc) · 1.19 KB
/
run-mve.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
workspace_path=/root/test_result/mve_result
image_dir=${workspace_path}/${1}
scene_dir=${workspace_path}/${2}
mve=/root/misc_codes/mve/apps
maxpixel=20000000
intrinsic_fp="2759.48,0,0,0.4950,0.4916,0.9983" # fountain-p11
intrinsic_tp="1520.40,0,0,0.4724,0.5143,0.9964" # temple
intrinsic_eth_pipe="3430.27,0,0,0.5015,0.4969,1.0003" # eth3d pipes
intrinsic_dtu="2892.33,0,0,0.5145,0.5159,1.0032" # dtu dataset
intrinsic_tanks=""
intrinsic=${intrinsic_tanks}
# --init-intrinsics=${intrinsic} \
${mve}/makescene/makescene --original \
--images-only ${image_dir} \
--max-pixels=${maxpixel} \
${scene_dir} &&
# --fixed-intrinsics \
${mve}/sfmrecon/sfmrecon --max-pixels=${maxpixel} \
--verbose-ba ${scene_dir} &&
${mve}/dmrecon/dmrecon --neighbors=9 \
--scale=0 \
--max-pixels=${maxpixel} \
--local-neighbors=6 \
--keep-dz \
--progress=fancy ${scene_dir} &&
${mve}/scene2pset/scene2pset -F0 ${scene_dir} ${scene_dir}/pset-L0.ply &&
${mve}/fssrecon/fssrecon ${scene_dir}/pset-L0.ply ${scene_dir}/surface-L0.ply &&
${mve}/meshclean/meshclean --threshold=8.0 --delete-scale ${scene_dir}/surface-L0.ply ${scene_dir}/surface-clean.ply