forked from bobbens/sketch_simplification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfigs.sh
More file actions
executable file
·43 lines (37 loc) · 721 Bytes
/
figs.sh
File metadata and controls
executable file
·43 lines (37 loc) · 721 Bytes
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
#!/bin/bash
function simplify () {
IN="figs/$1"
OUT="out/$1"
python simplify.py --img "$IN" --out "$OUT" || exit 1
}
INPUTS=(
# FIGURE 1
"fig01_eisaku.png"
# FIGURE 6
"fig06_eisaku_joshi.png"
"fig06_pepper.png"
"fig06_danshi.png"
"fig06_eisaku_robo.png"
# FIGURE 7
"fig07_tokage.png"
# FIGURE 12
"fig12_imori.png"
"fig12_shikaku.png"
"fig12_pepper.png"
# FIGURE 14
"fig14_imori.png"
"fig14_origami.png"
"fig14_pepper.png"
"fig14_danshi.png"
# FIGURE 15
"fig15_kame.png"
"fig15_joshi.png"
# FIGURE 16
"fig16_eisaku.png"
)
test -d out/ || mkdir -p out/
for FILE in "${INPUTS[@]}"; do
echo -n "Processing ${FILE}..."
simplify "$FILE"
echo "Done!"
done