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

Contents of /eyes/benflag.txt

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5