source: research/2008-displacement/README @ 2280

Last change on this file since 2280 was 2280, checked in by sam, 7 years ago
  • dionoea's results for part 1, on 5,000 images.
File size: 6.6 KB
Line 
1# Trouver des images au pif
2% find ~/4chan/unsorted-4chan/http* -name '1[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].???' | rev | sort -k2 -t. | rev | xargs -n 1 ./main | tee fs-4chan.txt
3% find ~/4chan/unsorted-4chan/http* -name '1[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].???' | rev | sort -k2 -t. | rev | xargs -n 1 ./main-jajuni | tee jajuni-4chan.txt
4% cat /tmp/4chanlist.txt | xargs -n 1 ./main | tee -a fs-4chan.txt
5
6# Lena
7set hidden3d
8set grid
9unset colorbox
10splot "lena-min.txt" with lines lc 7 notitle
11set terminal epslatex color size 2.5,2 blacktext
12set tmargin screen 0.75
13set bmargin screen 0.25
14set lmargin screen 0.05
15set rmargin screen 0.95
16set output "lena-min.tex"
17splot "lena-min.txt" with lines lc 7 notitle
18unset output
19set term pop
20
21# Dans gnuplot
22set xrange [-.1:.4]
23set yrange [.45:-.05]
24set grid
25plot "fs-4chan.txt" using 6:7 lc 1 pt 7 ps .08 title "4chan", \
26     "fs-tobefred.txt" using 6:7 lc 3 pt 7 ps .08 title "tobefred", \
27     "fs-uscsipi.txt" using 6:7 lc 2 pt 7 ps .08 title "USC-SIPI", \
28     "fs-jylam.txt" using 6:7 lc 4 pt 7 ps .08 title "Jylam", \
29     "merge.txt" using 5:6 lc 7 ps .2 with lines
30#plot "fs-textures.txt" using 6:7 lc 3 pt 7 ps .2, "fs-aerials.txt" using 6:7 lc 3 pt 7 ps .2, "fs-misc.txt" using 6:7 lc 7 pt 7 ps .2, "fs-4chan.txt" using 6:7 lc 1 pt 7 ps .2
31
32# Histogramme de la tache Floyd-Steinberg
33sed -ne 's/.* for //p' fs-*txt | ./xy2d >| histo-fs.txt
34# Et ensuite dans gnuplot:
35set xrange [-.1:.4]
36set yrange [.4:-.1]
37set grid
38set lmargin screen 0.05
39set bmargin screen 0.15
40set tmargin screen 0.95
41set rmargin screen 0.95
42unset colorbox
43set pm3d explicit map interpolate 1.8,1.8
44set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow")
45unset key
46#splot "histo-fs.txt" notitle
47set terminal epslatex color size 1.8,1.8 blacktext
48set output "fs-histo.tex"
49splot "histo-fs.txt" notitle
50unset output
51set term pop
52
53set xrange [-.1:.9]
54set yrange [.95:-.05]
55set grid
56plot "jajuni-4chan.txt" using 6:7 lc 1 pt 7 ps .08 title "4chan", \
57     "jajuni-tobefred.txt" using 6:7 lc 3 pt 7 ps .08 title "tobefred", \
58     "jajuni-uscsipi.txt" using 6:7 lc 2 pt 7 ps .08 title "USC-SIPI"
59
60# Histogramme de la tache JaJuNi
61sed -ne 's/.* for //p' jajuni*txt | ./xy2d-jajuni >| histo-jajuni.txt
62# Et ensuite dans gnuplot:
63set xrange [-.1:.9]
64set yrange [.9:-.1]
65set grid
66set lmargin screen 0.05
67set bmargin screen 0.15
68set tmargin screen 0.95
69set rmargin screen 0.95
70unset colorbox
71set pm3d explicit map interpolate 1.8,1.8
72set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow")
73unset key
74#splot "histo-jajuni.txt" notitle
75set terminal epslatex color size 1.8,1.8 blacktext
76set output "jajuni-histo.tex"
77splot "histo-jajuni.txt" notitle
78unset output
79set term pop
80
81# Test de merde
82set xrange [0:5]
83set yrange [0:5]
84set grid
85plot "fs-uscsipi.txt" using 2:4 lc 1 pt 7 ps .5, "fs-4chan.txt" using 2:4 lc 7 pt 7 ps .5, "fs-tobefred.txt" using 2:4 lc 3 pt 7 ps .5
86
87# Ostromoukhov
88set xrange [-.2:.2]
89set yrange [.3:-.1]
90set grid
91plot "ostro-4chan.txt" using 6:7 lc 1 pt 7 ps .08 title "4chan", \
92     "ostro-tobefred.txt" using 6:7 lc 3 pt 7 ps .08 title "tobefred", \
93     "ostro-uscsipi.txt" using 6:7 lc 2 pt 7 ps .08 title "USC-SIPI"
94
95# Histogramme de la tache Ostro
96sed -ne 's/.* for //p' ostro*txt | ./xy2d-ostro >| histo-ostro.txt
97# Et ensuite dans gnuplot:
98set xrange [-.2:.2]
99set yrange [.3:-.1]
100set grid
101set lmargin screen 0.05
102set bmargin screen 0.15
103set tmargin screen 0.95
104set rmargin screen 0.95
105unset colorbox
106set pm3d explicit map interpolate 1.8,1.8
107set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow")
108unset key
109splot "histo-ostro.txt" notitle
110set terminal epslatex color size 1.8,1.8 blacktext
111set output "ostro-histo.tex"
112splot "histo-ostro.txt" notitle
113unset output
114set term pop
115
116# Optimum
117set xrange [-.5:.2]
118set yrange [.6:-.1]
119set grid
120plot "optimum-4chan.txt" using 6:7 lc 1 pt 7 ps .08 title "4chan", \
121     "optimum-tobefred.txt" using 6:7 lc 3 pt 7 ps .08 title "tobefred", \
122     "optimum-uscsipi.txt" using 6:7 lc 2 pt 7 ps .08 title "USC-SIPI"
123
124# Histogramme de la tache Optimum
125sed -ne 's/.* for //p' optimum*txt | ./xy2d-optimum >| histo-optimum.txt
126# Et ensuite dans gnuplot:
127set xrange [-.5:.2]
128set yrange [.6:-.1]
129set grid
130set lmargin screen 0.05
131set bmargin screen 0.15
132set tmargin screen 0.95
133set rmargin screen 0.95
134unset colorbox
135set pm3d explicit map interpolate 1.8,1.8
136set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow")
137unset key
138splot "histo-optimum.txt" notitle
139set terminal epslatex color size 1.8,1.8 blacktext
140set output "optimum-histo.tex"
141splot "histo-optimum.txt" notitle
142unset output
143set term pop
144
145# Serpentine Optimum
146set xrange [-.3:.3]
147set yrange [.5:-.1]
148set grid
149plot "serpopt-4chan.txt" using 6:7 lc 1 pt 7 ps .08 title "4chan", \
150     "serpopt-tobefred.txt" using 6:7 lc 3 pt 7 ps .08 title "tobefred", \
151     "serpopt-uscsipi.txt" using 6:7 lc 2 pt 7 ps .08 title "USC-SIPI"
152
153# Histogramme de la tache Serpentine Optimum
154sed -ne 's/.* for //p' serpopt*txt | ./xy2d-serpopt >| histo-serpopt.txt
155# Et ensuite dans gnuplot:
156set xrange [-.3:.3]
157set yrange [.6:-.1]
158set grid
159set lmargin screen 0.05
160set bmargin screen 0.15
161set tmargin screen 0.95
162set rmargin screen 0.95
163unset colorbox
164set pm3d explicit map interpolate 1.8,1.8
165set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow")
166unset key
167splot "histo-serpopt.txt" notitle
168set terminal epslatex color size 1.8,1.8 blacktext
169set output "serpopt-histo.tex"
170splot "histo-serpopt.txt" notitle
171unset output
172set term pop
173
174# Combinaison jajuni / floyd-steinberg
175set xrange [-.1:.4]
176set yrange [.9:-.1]
177set grid
178plot "fs-4chan.txt" using 6:7 lc 2 pt 7 ps .1 title "Floyd-Steinberg", "jajuni-tobefred.txt" using 6:7 lc 1 pt 7 ps .1 title "Jarvis-Judice-Ninke"
179
180######################## Trucs en cours ########################
181
182# Lancés sur canard:
183boat.png elaine.png texture[2345].png
184
185# Lancés sur poulet :
186./main /var/www/net/tobefred/www/htdocs/media/romane_bohringer.jpg | tee out-bohringer.txt ; ./main /var/www/net/tobefred/www/htdocs/media/juliette_binoche_05.jpg | tee out-binoche.txt ; ./main /var/www/net/tobefred/www/htdocs/media/kate_beckinsale02.jpg | tee out-beckinsale.txt
187
188#### Pour les out-*
189scp canard.zoy.org:out-'*'.txt .
190for x in out-*.txt; do sort -k7 $x | head -20 ; done | cut -f1 -d: | sort | uniq -c | sort -n
191
192### Pour faire des répertoires
193for x in $(seq -w 00 09); do echo $x; mkdir -p /tmp/4chan/$x; cp $(find ~/4chan/unsorted-4chan/http* -name '1[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'$x'.???') /tmp/4chan/$x; done
194
195### Conversion du vieux format de résultats
196cat -n $x | sed 's/^  *[0-9]*\([0-9]\)[[:space:]]*/[\1] /; s/....###/###/; s/\[[27]/[1/; s/\[[38]/[2/; s/\[[49]/[3/; s/\[[50]/[4/'
197
Note: See TracBrowser for help on using the repository browser.