-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompression.sh
More file actions
50 lines (41 loc) · 1.09 KB
/
compression.sh
File metadata and controls
50 lines (41 loc) · 1.09 KB
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
#!/bin/sh
#file=$1
#filename without path
for file in $@
do
for cubed in 16
do
for level in 3
do
for subd in 1 2 4
do
for subwh in 32 16
do
datafile="CR_cd${cubed}_L${level}_sd${subd}_shw${subwh}_${file##*/}.csv"
if [ -f $datafile ]; then
mv $datafile old_$datafile
fi
#wcbfile="cd${cubed}_L${level}_sd${subd}_shw${subwh}_${file##*/}"
wcbfile=compressiontest
#for skip in 0.2 0.4 0.5 0.6 0.7 0.8 0.9 0.95 0.97 0.99
#do
echo $cubed $level $subd $subwh $skip $file
./cube -width 704 -height 576 -depth $cubed \
-sd $subd -sh $subwh -sw $subwh \
-levels $level \
-compressor ac \
-analysis2 \
$file out/$wcbfile \
| grep PSNRDATACODE >> $datafile
#-nofile -analysis -skip $skip \
#done
done
done
done
done
cat CR_cd16_L3_sd*shw16*${file##*/}* > CRfile16_${file##*/}.csv
cat CR_cd16_L3_sd*shw32*${file##*/}* > CRfile32_${file##*/}.csv
done
sh compressiongraph.sh ps2pdf test_compression16 CRfile16*
sh compressiongraph.sh ps2pdf test_compression32 CRfile32*
#open test_scalability.pdf