/[opencvs]/eyes/stephanie.txt
ViewVC logotype

Contents of /eyes/stephanie.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Sat Oct 8 22:06:17 2011 UTC (6 years, 11 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
working on tilify.c - this will be pretty neat
1
2
3
4 #Make alpha:
5 convert sources/source.jpg -resize 6400x4800 alpha.png
6
7 #Use gimp to make alpha.png to be right. alpha_no_blur is before the blur so we can re-edit the distribution cleanly
8 #did gaussian blur 15 pixels
9
10 #12,11 15,11 and 14,16 the three starter points - edited points.c appropriately
11
12
13 convert sources/source.jpg -resize 32x24 bitmap.png
14 points >points.txt
15
16
17 # Then md5 the rocks, the crystals, and the feathers
18
19 cd sources/rocks
20 cp $e/avar.sno .
21 mkdir i
22 02_md5_everything
23 mv i ../../rocks
24
25 cd ../crystals
26 cp $e/avar.sno .
27 mkdir i
28 02_md5_everything
29 mv i ../../crystals
30
31
32 cd ../feathers
33 cp $e/avar.sno .
34 mkdir i
35 02_md5_everything
36 mv i ../../feathers
37
38 cd ../..
39 mkdir i
40 ln rocks/* i
41 ln feathers/* i
42 ln crystals/* i
43
44
45 convert sources/source.jpg -resize 32x24 txt: | analyze_source_image_filter >source.txt
46
47 cd i
48 compute_all_averages.sh
49 mv analysis.txt ..
50
51 cd ..
52
53
54 #OK - now edit eyes.c and change the x,y for read_source to 32,24
55
56 eyes | sort >eyes.txt
57
58
59 #edit workeyes.pl
60 #Also edit makemontage.pl
61
62
63 # this make the regular and green screen compilation
64 cd i
65 cp ../eyes.txt .
66 mkdir m
67 bash workeyes.sh
68 ln -s m n
69 mkdir o p q
70 perl $e/makemontage.pl >/tmp/f
71 bash /tmp/f
72 mv p/i0_0.png ../pixeled.png
73 rm -rf m n o p q eyes.txt
74 cd ..
75
76
77
78 Then test it out
79 convert sources/source.jpg -resize 6400x4800 the_source.png
80
81 #bash analyze_source_image.sh alpha.png >alpha.txt
82 bash analyze_source_image.sh alpha2.png >alpha2.txt
83 bash analyze_source_image.sh the_source.png >the_source.txt
84
85 analyze_source_image.sh pixeled.png >pixeled.txt
86
87
88 #randomify 6400 4800 47 the_source.txt pixeled.txt alpha.txt | convert txt: test.png
89 randomify 6400 4800 47 the_source.txt pixeled.txt alpha2.txt | convert txt: test2.png
90
91 bash analyze_source_image.sh alpha3.png >alpha3.txt
92 randomify 6400 4800 47 the_source.txt pixeled.txt alpha3.txt | convert txt: test3.png
93
94
95
96
97 OK now for the real thing
98 rm alpha.txt alpha2.txt alpha3.txt pixeled.txt the_source.txt
99
100 #we are going to do 720 dpi - which is 990 pixels
101 #nope - 1980 pixels, 1440 dpi. Otherwise there are some pictures that loose their magic.
102
103 #edit workeyes.pl
104 #Also edit makemontage.pl
105
106 export MAGICK_TMPDIR=/t/tmp
107
108 # this make the regular and green screen compilation
109 cd i
110 cp ../eyes.txt .
111 mkdir m
112 bash workeyes.sh
113 ln -s m n
114 mkdir o p q
115 perl $e/makemontage.pl >/tmp/f
116 bash /tmp/f
117 mv p/i0_0.png ../pixeled.png
118 rm -rf m n o p q eyes.txt
119 cd ..
120
121 convert -limit memory 1000000000 -limit map 1000000000 alpha3.png -resize 63360x47520 txt: | analyze_source_image_filter >alpha3.txt
122 convert -limit memory 1000000000 -limit map 1000000000 sources/source.jpg -resize 63360x47520 txt: | analyze_source_image_filter >the_source.txt
123 convert -limit memory 1000000000 -limit map 1000000000 pixeled.png -depth 8 txt: | analyze_source_image_filter >pixeled.txt
124 randomify 63360 47520 14732961 the_source.txt pixeled.txt alpha3.txt | convert -limit memory 1000000000 -limit map 1000000000 txt: final.png
125
126
127
128 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 4 images at once crap - it looks crappy
129
130 It would be good to make the three different formations offset by 1/3 of a sqaure.
131 This can be done by - ???
132
133
134
135 Make alpha:
136 convert sources/source.jpg -resize 6400x4800 alpha.png
137
138 Use gimp to make alpha.png to be right. alpha_no_blur is before the blur so we can re-edit the distribution cleanly
139 did gaussian blur 15 pixels
140
141 convert sources/source.jpg -resize 16x12 bitmap.png
142 7,7 and 8,7 are the two initial points
143 points >points.txt
144
145
146 Then md5 the rocks, the crystals, and the feathers
147 cs sources/rocks
148 cp $e/avar.sno .
149 mkdir i
150 02_md5_everything
151 mv i ../../rocks
152
153 cd ../crystals
154 cp $e/avar.sno .
155 mkdir i
156 02_md5_everything
157 mv i ../../crystals
158
159
160 cd ../feathers
161 cp $e/avar.sno .
162 mkdir i
163 02_md5_everything
164 mv i ../../feathers
165
166 cd ../..
167
168
169 convert sources/source.jpg -resize 16x12 txt: | analyze_source_image_filter >source.txt
170
171 cd rocks
172 compute_all_averages.sh
173 mv analysis.txt ../analysis_rocks.txt
174
175 cd ../crystals
176 compute_all_averages.sh
177 mv analysis.txt ../analysis_crystals.txt
178
179
180
181 cd ../feathers
182 compute_all_averages.sh
183 mv analysis.txt ../analysis_feathers.txt
184 cd ..
185
186
187 OK - now edit eyes.c and change the x,y for read_source to 16,12
188
189 cp analysis_rocks.txt analysis.txt
190 eyes | sort >eyes_rocks.txt
191
192 cp analysis_crystals.txt analysis.txt
193 eyes | sort >eyes_crystals.txt
194
195 cp analysis_feathers.txt analysis.txt
196 eyes | sort >eyes_feathers.txt
197
198
199
200
201 edit workeyes.pl
202 Also edit makemontage.pl
203
204
205 # this make the regular and green screen compilation
206 cd rocks
207 cp ../eyes_rocks.txt eyes.txt
208 mkdir m
209 bash workeyes.sh
210 ln -s m n
211 mkdir o p q
212 perl $e/makemontage.pl >/tmp/f
213 bash /tmp/f
214 mv p/i0_0.png ../rocks.png
215
216 rm -rf m n o p q
217 awk <../eyes_rocks.txt5A -F \
218 '|' '{print $1 "|" $2 "|" $3 "|" $4 "|" $5 "|" "03FF02" "|" "3" "|" "255" "|" "2" "|" "1" "|" "1" "|" "03FF02" "|" "3" "|" "255" "|" "2" "|" "03FF02" "|" "3" "|" "255"}' >eyes.txt
219 mkdir m
220 bash workeyes.sh
221 ln -s m n
222 mkdir o p q
223 perl $e/makemontage.pl >/tmp/f
224 bash /tmp/f
225 mv p/i0_0.png ../rocks_greenscreen.png
226 rm -rf m n o p q eyes.txt
227
228
229 cd ../crystals
230 cp ../eyes_crystals.txt eyes.txt
231 mkdir m
232 bash workeyes.sh
233 ln -s m n
234 mkdir o p q
235 perl $e/makemontage.pl >/tmp/f
236 bash /tmp/f
237 mv p/i0_0.png ../crystals.png
238
239 rm -rf m n o p q
240 awk <../eyes_crystals.txt -F \
241 '|' '{print $1 "|" $2 "|" $3 "|" $4 "|" $5 "|" "03FF02" "|" "3" "|" "255" "|" "2" "|" "1" "|" "1" "|" "03FF02" "|" "3" "|" "255" "|" "2" "|" "03FF02" "|" "3" "|" "255"}' >eyes.txt
242 mkdir m
243 bash workeyes.sh
244 ln -s m n
245 mkdir o p q
246 perl $e/makemontage.pl >/tmp/f
247 bash /tmp/f
248 mv p/i0_0.png ../crystals_greenscreen.png
249 rm -rf m n o p q eyes.txt
250
251
252 cd ../feathers
253 cp ../eyes_feathers.txt eyes.txt
254 mkdir m
255 bash workeyes.sh
256 ln -s m n
257 mkdir o p q
258 perl $e/makemontage.pl >/tmp/f
259 bash /tmp/f
260 mv p/i0_0.png ../feathers.png
261
262 rm -rf m n o p q
263 awk <../eyes_feathers.txt -F \
264 '|' '{print $1 "|" $2 "|" $3 "|" $4 "|" $5 "|" "03FF02" "|" "3" "|" "255" "|" "2" "|" "1" "|" "1" "|" "03FF02" "|" "3" "|" "255" "|" "2" "|" "03FF02" "|" "3" "|" "255"}' >eyes.txt
265 mkdir m
266 bash workeyes.sh
267 ln -s m n
268 mkdir o p q
269 perl $e/makemontage.pl >/tmp/f
270 bash /tmp/f
271 mv p/i0_0.png ../feathers_greenscreen.png
272 rm -rf m n o p q eyes.txt
273
274 Then test it out
275 convert sources/source.jpg -resize 6400x4800 source.png
276
277 bash analyze_source_image.sh alpha.png >alpha.txt
278 bash analyze_source_image.sh the_source.png >the_source.txt
279
280 analyze_source_image.sh rocks.png >rocks.txt
281 analyze_source_image.sh rocks_greenscreen.png >rocks_greenscreen.txt
282 analyze_source_image.sh crystals.png >crystals.txt
283 analyze_source_image.sh crystals_greenscreen.png >crystals_greenscreen.txt
284 analyze_source_image.sh feathers.png >feathers.txt
285 analyze_source_image.sh feathers_greenscreen.png >feathers_greenscreen.txt
286
287
288 randomify4 6400 4800 43 the_source.txt rocks.txt rocks_greenscreen.txt crystals.txt crystals_greenscreen.txt feathers.txt feathers_greenscreen.txt alpha.txt | convert txt: test.png
289
290 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 images at once crap - it looks crappy

  ViewVC Help
Powered by ViewVC 1.1.5