-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscalability.sh
More file actions
41 lines (36 loc) · 865 Bytes
/
scalability.sh
File metadata and controls
41 lines (36 loc) · 865 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
41
#!/bin/sh
#file=$1
#filename without path
for file in $@
do
for cubed in 16
do
for level in 3
do
for subd in 2
do
for subwh in 32
do
datafile="psnr_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##*/}"
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 lzo \
-nofile -analysis -skip $skip \
$file out/$wcbfile \
| grep PSNRDATACODE >> $datafile
done
done
done
done
done
done
sh psnrgraph.sh ps2pdf test_scalability psnr_cd*L3*.yuv.csv
open test_scalability.pdf