-
Notifications
You must be signed in to change notification settings - Fork 8
/
test.sh
84 lines (64 loc) · 4.47 KB
/
test.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# downsample and then upsample, then compare metrics
cargo run --bin vv -- read ./my_test/pcd_a/longdress_vox10_1213.pcd +output=pcda \
downsample -p 2 +input=pcda +output=pcda_ds \
metrics +input=pcda,pcda_ds +output=metrics\
write --output-dir ./test_files/metrics +input=metrics
# ply ascii to pcd binary
echo "ply ascii to pcd binary"
cargo run --bin vv -- convert --input ./8i_dataset/red_black/ply_a \
--output ./8i_dataset/red_black/pcd_b \
--storage-type binary \
--output-format pcd
# pcd binary to pcd ascii
echo "pcd binary to pcd ascii"
cargo run --bin vv -- convert --input ./8i_dataset/red_black/pcd_b \
--output ./8i_dataset/red_black/pcd_a \
--storage-type ascii \
--output-format pcd
# pcd binary to ply binary
echo "pcd binary to ply binary"
cargo run --bin vv -- convert --input ./8i_dataset/red_black/pcd_b \
--output ./8i_dataset/red_black/ply_b \
--storage-type binary \
--output-format ply
# play pcd
cargo run --release --bin vvplay -- ./8i_dataset/red_black/pcd_b
# play ply binary
cargo run --release --bin vvplay -- ./8i_dataset/red_black/ply_b
# try read write in release mode
mkdir tmp
# read pcd binary and downsampled pcd binary, calculate metrics, write to tmp
cargo run --release --bin vv -- read ./8i_dataset/red_black/pcd_b +output=pcdb \
read ./8i_dataset/red_black/pcd_b_down +output=pcdb_ds \
metrics +input=pcdb,pcdb_ds +output=metrics \
write --output-dir ./tmp/metrics +input=metrics
cargo run --release --bin vv -- read ./8i_dataset/red_black/pcd_b_down/00000.pcd +output=pcdb_ds \
read ./8i_dataset/red_black/pcd_b/redandblack_vox10_1510.pcd +output=pcdb \
upsample -f 1 +input=pcdb_ds +output=pcdb_us \
metrics +input=pcdb,pcdb_us +output=metrics \
write --output-dir ./tmp/metrics_down_up +input=metrics
# a lot of reading
cargo run --release --bin vv -- read ./8i_dataset/red_black/pcd_b +output=pcdb \
read ./8i_dataset/red_black/pcd_b +output=pcdb \
read ./8i_dataset/red_black/pcd_b +output=pcdb \
read ./8i_dataset/red_black/pcd_b +output=pcdb \
read ./8i_dataset/red_black/pcd_b +output=pcdb \
read ./8i_dataset/red_black/pcd_b +output=pcdb \
write --output-dir ./tmp/ +input=pcdb
cargo run --release --bin vv -- read ./8i_dataset/red_black/ply_a/redandblack_vox10_1510.ply +output=plya \
write --output-dir ./tmp/ --output-format pcd --storage-type binary +input=plya
cargo run --release --bin vv -- read ./8i_dataset/red_black/ply_b/redandblack_vox10_1510.ply +output=plyb \
render +input=plyb --output-dir ./tmp/
cargo run --release --bin vv -- read ./8i_dataset/red_black/ply_b/redandblack_vox10_1510.ply +output=pcdb \
read ./8i_dataset/red_black/pcd_b_down/00000.pcd +output=pcd_comp \
downsample -p 5 +input=pcdb +output=pcdb_down \
upsample -f 1 +input=pcdb_down +output=pcdb_down_up \
metrics +input=pcd_comp,pcdb_down_up +output=metric \
write --output-dir ./tmp/metrics +input=metric \
write --output-dir ./tmp/down_up +input=pcdb_down_up \
render +input=pcdb_down_up --output-dir ./tmp/down_up
cargo run --bin vv -- read ./8i_dataset/red_black/ply_b/redandblack_vox10_1510.ply +output=pcdb \
read ./8i_dataset/red_black/pcd_b_down/00000.pcd +output=pcd_comp \
metrics +input=pcdb,pcd_comp +output=metric \
write +input=metric
rm -rf tmp